2020-02-01 19:05:42 +01:00
|
|
|
diff --git a/pre_commit/resources/hook-tmpl b/pre_commit/resources/hook-tmpl
|
2020-05-20 22:24:52 +02:00
|
|
|
index 299144e..6d12543 100755
|
2020-02-01 19:05:42 +01:00
|
|
|
--- a/pre_commit/resources/hook-tmpl
|
|
|
|
+++ b/pre_commit/resources/hook-tmpl
|
2020-05-20 22:24:52 +02:00
|
|
|
@@ -25,8 +25,8 @@ ARGS.append('--')
|
|
|
|
ARGS.extend(sys.argv[1:])
|
2020-02-01 19:05:42 +01:00
|
|
|
|
2020-05-20 22:24:52 +02:00
|
|
|
DNE = '`pre-commit` not found. Did you forget to activate your virtualenv?'
|
|
|
|
-if os.access(INSTALL_PYTHON, os.X_OK):
|
|
|
|
- CMD = [INSTALL_PYTHON, '-mpre_commit']
|
|
|
|
+if os.access('@pre-commit@/bin/pre-commit', os.X_OK):
|
|
|
|
+ CMD = ['@pre-commit@/bin/pre-commit']
|
|
|
|
elif which('pre-commit'):
|
|
|
|
CMD = ['pre-commit']
|
|
|
|
else:
|