Created
August 24, 2017 12:37
-
-
Save jaybrueder/b3317084167789cccb672e77dc7296e6 to your computer and use it in GitHub Desktop.
hook
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 | |
# prevent adding of unencrypted files | |
if test $(git-crypt status | grep "WARNING" | wc -l) != 0 | |
then | |
echo "WARNING: There are unencrypted files in your staging area. Commit aborted!" | |
exit 1; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment