Skip to content

Instantly share code, notes, and snippets.

@fcofdez
Created August 13, 2014 15:56
Show Gist options
  • Save fcofdez/be64699f4df5db7739f6 to your computer and use it in GitHub Desktop.
Save fcofdez/be64699f4df5db7739f6 to your computer and use it in GitHub Desktop.
pre-commit hook
if git status --porcelain | awk '{ print $2 }' | xargs grep -r "set_trace" &>/dev/null
then
echo "Error, trying to commit with traces"
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment