[tor-commits] [tor/master] Only run the checkIncludes.py script if it exists

nickm at torproject.org nickm at torproject.org
Thu Jan 24 16:08:15 UTC 2019


commit dd22c84ccf07214d3d57642c2ba161be496f3607
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Jan 24 08:06:09 2019 -0500

    Only run the checkIncludes.py script if it exists
    
    (It was added in 0.3.5)
---
 scripts/maint/pre-commit.git-hook | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/maint/pre-commit.git-hook b/scripts/maint/pre-commit.git-hook
index a0d0a8bb6..b4c4ce206 100755
--- a/scripts/maint/pre-commit.git-hook
+++ b/scripts/maint/pre-commit.git-hook
@@ -21,5 +21,6 @@ src/test/*.[ch] \
 src/test/*/*.[ch] \
 src/tools/*.[ch]
 
-python scripts/maint/checkIncludes.py
-
+if test -e scripts/maint/checkIncludes.py; then
+    python scripts/maint/checkIncludes.py
+fi





More information about the tor-commits mailing list