-
-
Save monokrome/6911822 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# rename pre-commit.sample in the hooks directory to pre-commit and replace its content with this | |
set_traces=`git grep ".set_trace()"` | |
if [ ! -z "$set_traces" ] ; then | |
echo "You have pdb.set_trace() in your code! Commit aborted!" | |
echo $set_traces | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment