Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 32d32e3

Browse files
committed
work around broken bash in azure pipelines
1 parent dde988b commit 32d32e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)