Skip to content

Commit 9315221

Browse files
authored
Merge pull request #1295 from pre-commit/ap_bash_broken
work around broken bash in azure pipelines
2 parents dde988b + 32d32e3 commit 9315221

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/commands/install_uninstall_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def test_failing_hooks_returns_nonzero(tempdir_factory, store):
307307
def _write_legacy_hook(path):
308308
os.makedirs(os.path.join(path, '.git/hooks'), exist_ok=True)
309309
with open(os.path.join(path, '.git/hooks/pre-commit'), 'w') as f:
310-
f.write('#!/usr/bin/env bash\necho "legacy hook"\n')
310+
f.write(f'{shebang()}\nprint("legacy hook")\n')
311311
make_executable(f.name)
312312

313313

0 commit comments

Comments
 (0)