Call practracker from pre-push and pre-commit hooks

This commit is contained in:
rl1987
2019-04-19 09:46:36 +03:00
committed by Nick Mathewson
parent 4b8c77a590
commit a85cd5b41b
2 changed files with 10 additions and 0 deletions
+6
View File
@@ -34,6 +34,12 @@ if [ -x "$workdir/.git/hooks/pre-commit" ]; then
fi
fi
if [ -e scripts/maint/practracker/practracker.py ]; then
if ! python3 ./scripts/maint/practracker/practracker.py "$workdir"; then
exit 1
fi
fi
# shellcheck disable=SC2034
while read -r local_ref local_sha remote_ref remote_sha
do