Skip to content

Instantly share code, notes, and snippets.

@pierrel
Created August 22, 2011 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pierrel/1163686 to your computer and use it in GitHub Desktop.
Save pierrel/1163686 to your computer and use it in GitHub Desktop.
Make sure I didn't commit any debugger lines
WARN_ME="\n\
!WARNING! \n\
This change may contain a debugger line. Please make sure this is not the case before pushing. \n\
!END WARNING! \n"
if git show | grep -q "debugger"
then
echo $WARN_ME
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment