Skip to content

Instantly share code, notes, and snippets.

@jdell64
Created January 27, 2018 19:00
Show Gist options
  • Save jdell64/38a3624acccfcbf11f3e357a2a1685d4 to your computer and use it in GitHub Desktop.
Save jdell64/38a3624acccfcbf11f3e357a2a1685d4 to your computer and use it in GitHub Desktop.
pre commit check to see if version file was updated.
exec git diff --name-only origin/$(git rev-parse --abbrev-ref HEAD) | grep -v *.py | if grep --quiet version
then
echo "Version was updated in this commit"
else
echo "Version was not updated in this commit"
exit 17
fi
@jdell64
Copy link
Author

jdell64 commented Jan 27, 2018

removes the py file because that is my version bumper script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment