summaryrefslogtreecommitdiff
path: root/gbp/git
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/git')
-rw-r--r--gbp/git/repository.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py
index 64792d8..c2d3baa 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -812,7 +812,8 @@ class GitRepository(object):
@return: C{True} if the repository has that tree, C{False} otherwise
@rtype: C{bool}
"""
- out, ret = self._git_getoutput('ls-tree', [ treeish ])
+ out, dummy, ret = self._git_inout('ls-tree', [ treeish ],
+ capture_stderr=True)
return [ True, False ][ret != 0]
def write_tree(self, index_file=None):