Files
cuckoo/stuff/git-pre-commit
T

12 lines
325 B
Bash
Executable File

#!/bin/sh
# Setup as follows (from the Git repository root):
# $ ln -s $PWD/stuff/git-pre-commit $PWD/.git/hooks/pre-commit
set -e
if git diff --cached cuckoo/web/src|grep -e '\+.*console.log'; then
echo
echo ">>> \033[0;31mGet rid of above console.log statement(s) before committing!\033[0m"
echo
exit 1
fi