Skip to content

Instantly share code, notes, and snippets.

@jaybrueder
Created August 24, 2017 12:37
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 jaybrueder/b3317084167789cccb672e77dc7296e6 to your computer and use it in GitHub Desktop.
Save jaybrueder/b3317084167789cccb672e77dc7296e6 to your computer and use it in GitHub Desktop.
hook
#!/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