From f2692db8d4fbbbd58fb082da36b8e5f4456985fe Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 21 Oct 2011 21:33:45 +0200 Subject: Execute GitRepository._get_output default at self.path by default Git-Dch: Ignore --- gbp/git.py | 3 +++ 1 file changed, 3 insertions(+) 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) -- cgit v1.2.3