summaryrefslogtreecommitdiff
path: root/git
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2015-02-09 19:23:17 +0100
committerSebastian Thiel <byronimo@gmail.com>2015-02-09 19:23:17 +0100
commit9dc8fffd179b3d7ad7c46ff2e6875cc8075fabf3 (patch)
tree3414472d1fa50374c9ff26be2f824cc84cb66df3 /git
parentae0b6fe15e0b89de004d4db40c4ce35e5e2d4536 (diff)
parent873823f39275ceb8d65ebfae74206c7347e07123 (diff)
downloadgitpython-9dc8fffd179b3d7ad7c46ff2e6875cc8075fabf3.tar.gz
Merge branch 'bf/run_hooks_from_working_dir' of https://github.com/yarikoptic/GitPython into 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()