Created
August 25, 2015 13:36
-
-
Save vikeri/e0e7d8559b3b4b640123 to your computer and use it in GitHub Desktop.
Avoid commiting println in clojure
This file contains 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
#!/bin/sh | |
if git diff --cached | grep 'println'; | |
then | |
tput setaf 1; echo "ERROR: You tried to commit a println statement" | |
tput bel | |
exit 1; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment