aboutsummaryrefslogtreecommitdiff
path: root/scripts/maint/checkIncludes.py
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-08-05 14:11:51 -0400
committerNick Mathewson <nickm@torproject.org>2019-08-05 14:12:39 -0400
commit9abbde2c244f40fcf06c34cd72c360a9770fcd7c (patch)
treeee9a11f9669bdeb10734e2a68e007be74da20e55 /scripts/maint/checkIncludes.py
parent6fb74753c2d6400ea6d7e118ce2428d0290728a8 (diff)
downloadtor-9abbde2c244f40fcf06c34cd72c360a9770fcd7c.tar.gz
tor-9abbde2c244f40fcf06c34cd72c360a9770fcd7c.zip
Update pre-commit hook to find checkIncludes in its new location
Also add a temporary script to redirect the hook, if people don't upgrade for a bit.
Diffstat (limited to 'scripts/maint/checkIncludes.py')
-rwxr-xr-xscripts/maint/checkIncludes.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/maint/checkIncludes.py b/scripts/maint/checkIncludes.py
new file mode 100755
index 0000000000..926b201b35
--- /dev/null
+++ b/scripts/maint/checkIncludes.py
@@ -0,0 +1,14 @@
+#!/usr/bin/python
+# Copyright 2018 The Tor Project, Inc. See LICENSE file for licensing info.
+
+# This file is no longer here; see practracker/includes.py for this
+# functionality. This is a stub file that exists so that older git
+# hooks will know where to look.
+
+import sys, os
+
+dirname = os.path.split(sys.argv[0])[0]
+new_location = os.path.join(dirname, "practracker", "includes.py")
+python = sys.executable
+
+os.execl(python, python, new_location, *sys.argv[1:])