summaryrefslogtreecommitdiff
path: root/gbp/git
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-04-26 23:52:55 +0200
committerGuido Günther <agx@sigxcpu.org>2013-04-26 23:52:55 +0200
commitfe56196996e9190b81edb6a71727e39d88193b74 (patch)
treebf654e636a7a9f67f0fcf568898805a9feed243c /gbp/git
parentd00eb83666f2383acc29597472fb7acb4f39e6ef (diff)
Silence GitRepository.has_treeish
This also silences 10_test_get_upstream_tree
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):