Skip to content

Commit 28d6c90

Browse files
committed
Merge branch 'yarikoptic-bf/run_hooks_from_working_dir'
2 parents ae0b6fe + 9dc8fff commit 28d6c90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git/index/fun.py

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def run_commit_hook(name, index):
7272
env=env,
7373
stdout=subprocess.PIPE,
7474
stderr=subprocess.PIPE,
75+
cwd=index.repo.working_dir,
7576
close_fds=(os.name == 'posix'))
7677
stdout, stderr = cmd.communicate()
7778
cmd.stdout.close()

0 commit comments

Comments
 (0)