summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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()