Merge branch 'tor-github/pr/1220'

This commit is contained in:
George Kadianakis 2019-08-19 18:02:44 +03:00
commit e411fcabd7
3 changed files with 14 additions and 5 deletions

5
changes/ticket30979 Normal file
View File

@ -0,0 +1,5 @@
o Minor features (git hooks):
- Our pre-push git hook now checks for a special file
before running practracker, so that it only runs on branches
that are based on master.
Closes ticket 30979.

View File

@ -28,10 +28,14 @@ if [ -x "$workdir/.git/hooks/pre-commit" ]; then
fi fi
fi fi
if [ -e scripts/maint/practracker/practracker.py ]; then PT_DIR=scripts/maint/practracker
if ! python3 ./scripts/maint/practracker/practracker.py "$workdir"; then
exit 1 if [ -e "${PT_DIR}/practracker.py" ]; then
fi if [ -e "${PT_DIR}/.enable_practracker_in_hooks" ]; then
if ! python3 "${PT_DIR}/practracker.py" "$workdir"; then
exit 1
fi
fi
fi fi
remote="$1" remote="$1"
@ -104,4 +108,3 @@ do
done done
exit 0 exit 0

View File

@ -0,0 +1 @@
This file is present to tell our git hooks to run practracker on this branch.