User:Evilpie/commit-restrictions: Difference between revisions

Jump to navigation Jump to search
Line 48: Line 48:
export PYTHONPATH = ~/myhooks # assuming good_commit_messages.py is in this folder
export PYTHONPATH = ~/myhooks # assuming good_commit_messages.py is in this folder
</pre>
</pre>
You can also edit good_commit_messages.py to abort commits instead of warning. Search for <pre>fail not warn</pre> in the the file and change <pre>0</pre> to <pre>1</pre>
You can also edit good_commit_messages.py to abort commits instead of warning. Search for <code>fail not warn</code> in the the file and change <code>0</code> to <code>1</code>
Confirmed users
149

edits

Navigation menu