summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2008-05-04 16:16:02 +0200
committerGuido Guenther <agx@sigxcpu.org>2008-05-04 16:16:02 +0200
commitea489846711302f8d283c879f7d7885999a2a06e (patch)
tree7ff05951ca526262483f154f53f0baa091d28dc6
parente3f187ab280c72bbaf58008fb78cbb3f185056da (diff)
yield the commit message
instead of passing it back as a whole
-rw-r--r--gbp/git_utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/git_utils.py b/gbp/git_utils.py
index 21823f73..5f6158c6 100644
--- a/gbp/git_utils.py
+++ b/gbp/git_utils.py
@@ -108,7 +108,8 @@ class GitRepository(object):
commit, ret = self.__git_getoutput('show', [ id ])
if ret:
raise GitRepositoryError, "can't get %s" % id
- return commit
+ for line in commit:
+ yield line
def write_tree(self):
"""write out the current index, return the SHA1"""