]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Call practracker from pre-push and pre-commit hooks
authorrl1987 <rl1987@sdf.lonestar.org>
Fri, 19 Apr 2019 06:46:36 +0000 (09:46 +0300)
committerNick Mathewson <nickm@torproject.org>
Tue, 23 Apr 2019 16:51:29 +0000 (12:51 -0400)
scripts/git/pre-commit.git-hook
scripts/git/pre-push.git-hook

index 65fa99f4c4e55411049973601b36b8f09720272c..76d13adeb939115f1a070a8c398c811276925865 100755 (executable)
@@ -39,3 +39,7 @@ fi
 if test -e scripts/maint/checkIncludes.py; then
     python scripts/maint/checkIncludes.py
 fi
+
+if [ -e scripts/maint/practracker/practracker.py ]; then
+  python3 ./scripts/maint/practracker/practracker.py "$workdir"
+fi
index f3298293463e88bd06d904afa084eb01466cced7..740180d6f6a7c64fcd8942b351d9b579ac1ed35c 100755 (executable)
@@ -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