We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ae0b6fe + 9dc8fff commit 28d6c90Copy full SHA for 28d6c90
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