summaryrefslogtreecommitdiff
path: root/gbp/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/git.py')
-rw-r--r--gbp/git.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/gbp/git.py b/gbp/git.py
index 8546a83..c09ce1e 100644
--- a/gbp/git.py
+++ b/gbp/git.py
@@ -62,6 +62,10 @@ class GitRepository(object):
stdin = None
return stdin
+ def base_dir(self):
+ """Base of the repository"""
+ return os.path.join(self.path, '.git')
+
def has_branch(self, branch, remote=False):
"""
check if the repository has branch 'branch'