diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2010-07-06 03:22:51 -0500 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2010-07-06 17:40:59 +0200 |
commit | a650ce3f8be383561fa16039723d75c154574d28 (patch) | |
tree | 2eac7ace712641032f00f9ed590acc914509b644 /gbp/git.py | |
parent | 2acfc8fa4620a214822598849f01cb3fd31320cc (diff) |
Add prebuild hook
Can be used to add an upstream changelog generated from the
git repository to the build dir.
Closes: #587652
Diffstat (limited to 'gbp/git.py')
-rw-r--r-- | gbp/git.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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' |