Confirmed users
149
edits
Line 42: | Line 42: | ||
<pre> | <pre> | ||
[hooks] | [hooks] | ||
pretxncommit. | pretxncommit.commit = python:commit-message.hook | ||
</pre> | </pre> | ||
You probably need to add | You probably need to add commit-message.py to your Python path | ||
<pre> | <pre> | ||
export PYTHONPATH = ~/myhooks # assuming | export PYTHONPATH = ~/myhooks # assuming commit-message.py is in this folder | ||
</pre> | </pre> | ||
You can also edit good_commit_messages.py to abort commits instead of warning. Search for "fail not warn" (without the quotes) in the the file and change 0 to 1. | You can also edit good_commit_messages.py to abort commits instead of warning. Search for "to fail not warn" (without the quotes) in the the file and change 0 to 1. |