summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRob Browning <rlb@defaultvalue.org>2010-12-05 12:46:40 -0600
committerGuido Günther <agx@sigxcpu.org>2010-12-06 08:04:57 +0100
commit5b7b0f19cf565996973af432e02fec71bddb3b36 (patch)
tree64b4597d2b804c63eec0504872b55d1010bc599d
parent98b034c5ff8baadd15f20d2027b1dd4583b2f65c (diff)
Use "log -n1" instead of "show" to retrieve commit log information.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
-rw-r--r--gbp/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gbp/git.py b/gbp/git.py
index fa29ea07..3e929ca6 100644
--- a/gbp/git.py
+++ b/gbp/git.py
@@ -277,7 +277,7 @@ class GitRepository(object):
def get_subject(self, commit):
"""Gets the subject of a commit"""
self.__check_path()
- out, ret = self.__git_getoutput('show', ['--pretty=format:%s', commit])
+ out, ret = self.__git_getoutput('log', ['-n1', '--pretty=format:%s', commit])
if ret:
raise GitRepositoryError, "Error getting subject of commit %s" % commit
return out[0].strip()