commit a85cd5b41bbd71cd16a9a641e067faf4cafb313e parent 4b8c77a590df699c56dcfd92e4e4839223f488dc Author: rl1987 <rl1987@sdf.lonestar.org> Date: Fri, 19 Apr 2019 09:46:36 +0300 Call practracker from pre-push and pre-commit hooks Diffstat:
| M | scripts/git/pre-commit.git-hook | | | 4 | ++++ |
| M | scripts/git/pre-push.git-hook | | | 6 | ++++++ |
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/scripts/git/pre-commit.git-hook b/scripts/git/pre-commit.git-hook @@ -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 diff --git 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