summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gbp/git.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/git.py b/gbp/git.py
index 6499033..f6e12ae 100644
--- a/gbp/git.py
+++ b/gbp/git.py
@@ -74,7 +74,8 @@ class GitRepository(object):
popen = subprocess.Popen(cmd,
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
- env=env)
+ env=env,
+ cwd=self.path)
(stdout, stderr) = popen.communicate(input)
return stdout, stderr, popen.returncode