Created
November 3, 2013 21:38
-
-
Save bonkydog/7295143 to your computer and use it in GitHub Desktop.
Remove Before Flight git pre-commit hook script.
Install as .git/hooks/pre-commit
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
| #!/bin/sh | |
| PAGER='' | |
| cd $GIT_DIR/.. | |
| if git grep --cached --quiet RBF; | |
| then | |
| echo '\naborting commit due to RBF tag:\n' | |
| git grep --cached RBF | |
| echo | |
| exit 1 | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment