Last active
August 29, 2015 13:57
-
-
Save mgreiner/9533001 to your computer and use it in GitHub Desktop.
Pre-commit hook to prevent committing anything that references Reveal.
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 "Reveal\.\(app\|framework\)" > /dev/null | |
then | |
echo "Your project contains references to Reveal. Remove the references before commiting." | |
exit 1 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment