summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2010-08-18 18:02:40 +0200
committerGuido Günther <agx@sigxcpu.org>2010-08-18 18:05:15 +0200
commit74aa351ffe00c4e62b110dc208d1a20f78850dee (patch)
tree0ce5ac370a9f1a10114a0172f19f13b6ba366e45
parentcc557e7dddeffa0d844a1f1be1f00feebec92ac6 (diff)
downloadgit-buildpackage-74aa351ffe00c4e62b110dc208d1a20f78850dee.tar.gz
git-buildpackage-74aa351ffe00c4e62b110dc208d1a20f78850dee.tar.bz2
git-buildpackage-74aa351ffe00c4e62b110dc208d1a20f78850dee.zip
Use --pretty=format: instead of --format=
to support the git version in Lenny.
-rw-r--r--gbp/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/git.py b/gbp/git.py
index 350f5165..279e9011 100644
--- a/gbp/git.py
+++ b/gbp/git.py
@@ -249,7 +249,7 @@ class GitRepository(object):
def get_subject(self, commit):
"""Gets the subject of a commit"""
self.__check_path()
- out, ret = self.__git_getoutput('show', ['--format=%s', commit])
+ out, ret = self.__git_getoutput('show', ['--pretty=format:%s', commit])
if ret:
raise GitRepositoryError, "Error getting subject of commit %s" % commit
return out[0].strip()