1 parent d8bbfea commit 873823fCopy full SHA for 873823f
git/index/fun.py
@@ -72,6 +72,7 @@ def run_commit_hook(name, index):
72
env=env,
73
stdout=subprocess.PIPE,
74
stderr=subprocess.PIPE,
75
+ cwd=index.repo.working_dir,
76
close_fds=(os.name == 'posix'))
77
stdout, stderr = cmd.communicate()
78
cmd.stdout.close()
0 commit comments