From a650ce3f8be383561fa16039723d75c154574d28 Mon Sep 17 00:00:00 2001 From: Jonathan Nieder Date: Tue, 6 Jul 2010 03:22:51 -0500 Subject: Add prebuild hook Can be used to add an upstream changelog generated from the git repository to the build dir. Closes: #587652 --- gbp/git.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gbp/git.py') 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' -- cgit v1.2.3