Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd61269 commit ec72cb7Copy full SHA for ec72cb7
1 file changed
pre_commit/resources/hook-tmpl
@@ -57,7 +57,8 @@ def _run_legacy():
57
legacy_script = HOOK_TYPE + '.legacy'
58
is_legacy_executed = os.path.basename(__file__) == legacy_script
59
legacy_hook = os.path.join(HERE, legacy_script)
60
- if not is_legacy_executed and os.access(legacy_hook, os.X_OK):
+ assert not is_legacy_executed, __file__
61
+ if os.access(legacy_hook, os.X_OK):
62
cmd = _norm_exe(legacy_hook) + (legacy_hook,) + tuple(sys.argv[1:])
63
proc = subprocess.Popen(cmd, stdin=subprocess.PIPE if stdin else None)
64
proc.communicate(stdin)
0 commit comments