Skip to content

Commit 8a374e4

Browse files
daavooefiop
authored andcommitted
Fix windows install hook
Closes iterative/dvc#7700
1 parent bc51504 commit 8a374e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scmrepo/git/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def install_hook(
242242
self.hooks_dir.mkdir(exist_ok=True)
243243
hook = self.hooks_dir / name
244244

245-
directive = f"#!{shutil.which(interpreter)}"
245+
directive = f"#!{shutil.which(interpreter) or '/bin/sh' }"
246246
hook.write_text(f"{directive}\n{script}\n", encoding="utf-8")
247247
hook.chmod(0o777)
248248

0 commit comments

Comments
 (0)