summaryrefslogtreecommitdiff
path: root/scripts/git/pre-push.git-hook
diff options
context:
space:
mode:
authorrl1987 <rl1987@sdf.lonestar.org>2019-04-19 09:46:36 +0300
committerNick Mathewson <nickm@torproject.org>2019-04-23 12:51:29 -0400
commita85cd5b41bbd71cd16a9a641e067faf4cafb313e (patch)
tree6cf573a23ff9e04499287d8d0eefb629888852a0 /scripts/git/pre-push.git-hook
parent4b8c77a590df699c56dcfd92e4e4839223f488dc (diff)
downloadtor-a85cd5b41bbd71cd16a9a641e067faf4cafb313e.tar.gz
tor-a85cd5b41bbd71cd16a9a641e067faf4cafb313e.zip
Call practracker from pre-push and pre-commit hooks
Diffstat (limited to 'scripts/git/pre-push.git-hook')
-rwxr-xr-xscripts/git/pre-push.git-hook6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/git/pre-push.git-hook b/scripts/git/pre-push.git-hook
index f329829346..740180d6f6 100755
--- a/scripts/git/pre-push.git-hook
+++ b/scripts/git/pre-push.git-hook
@@ -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