diff options
author | Rob Browning <rlb@defaultvalue.org> | 2010-12-05 12:46:40 -0600 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2010-12-06 08:04:57 +0100 |
commit | 5b7b0f19cf565996973af432e02fec71bddb3b36 (patch) | |
tree | 64b4597d2b804c63eec0504872b55d1010bc599d | |
parent | 98b034c5ff8baadd15f20d2027b1dd4583b2f65c (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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() |