summaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-02-09 19:24:10 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-02-09 19:24:10 +0100
commit28d6c90782926412ba76838e7a81e60b41083290 (patch)
tree3414472d1fa50374c9ff26be2f824cc84cb66df3 /git
parentae0b6fe15e0b89de004d4db40c4ce35e5e2d4536 (diff)
parent9dc8fffd179b3d7ad7c46ff2e6875cc8075fabf3 (diff)
downloadgitpython-28d6c90782926412ba76838e7a81e60b41083290.tar.gz
Merge branch 'yarikoptic-bf/run_hooks_from_working_dir'
Diffstat (limited to 'git')
-rw-r--r--git/index/fun.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/git/index/fun.py b/git/index/fun.py
index f8bd9d89..c1188ccb 100644
--- a/git/index/fun.py
+++ b/git/index/fun.py
@@ -72,6 +72,7 @@ def run_commit_hook(name, index):
env=env,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
+ cwd=index.repo.working_dir,
close_fds=(os.name == 'posix'))
stdout, stderr = cmd.communicate()
cmd.stdout.close()