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