aboutsummaryrefslogtreecommitdiff
path: root/gbp/git_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/git_utils.py')
-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"""