summaryrefslogtreecommitdiff
path: root/gbp
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2011-10-21 21:33:45 +0200
committerGuido Günther <agx@sigxcpu.org>2011-10-22 15:33:40 +0200
commitf2692db8d4fbbbd58fb082da36b8e5f4456985fe (patch)
tree18cac05a1f433e715edaec9a4a9ad36579450991 /gbp
parentf4f122a56ab3c4e4f5a63771cb6ef309f1fccd9c (diff)
Execute GitRepository._get_output default at self.path by default
Git-Dch: Ignore
Diffstat (limited to 'gbp')
-rw-r--r--gbp/git.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gbp/git.py b/gbp/git.py
index f1b6add..3740cb9 100644
--- a/gbp/git.py
+++ b/gbp/git.py
@@ -56,6 +56,9 @@ class GitRepository(object):
"""exec a git command and return the output"""
output = []
+ if not cwd:
+ cwd = self.path
+
env = self.__build_env(extra_env)
cmd = ['git', command] + args
log.debug(cmd)