diff options
author | Guido Günther <agx@sigxcpu.org> | 2013-04-27 00:00:06 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2013-04-27 00:00:06 +0200 |
commit | 3c9d10e04c1604a4b6846154941528daba2bcffb (patch) | |
tree | f69ddd710e1a35113131b9f53aa666fbec9825b7 /gbp/git/repository.py | |
parent | fe56196996e9190b81edb6a71727e39d88193b74 (diff) |
Silence GitRepository.set_upstream_branch
It's not used within gbp itself so no command line tool expects
an error message to be printed.
Diffstat (limited to 'gbp/git/repository.py')
-rw-r--r-- | gbp/git/repository.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py index c2d3baa..1c8ea9c 100644 --- a/gbp/git/repository.py +++ b/gbp/git/repository.py @@ -522,8 +522,8 @@ class GitRepository(object): if not self.has_branch(branch, remote=remote): raise GitRepositoryError("Branch %s doesn't exist!" % branch) - self._git_getoutput('branch', ["--set-upstream", local_branch, upstream]) - + self._git_inout('branch', ["--set-upstream", local_branch, upstream], + capture_stderr=True) def get_upstream_branch(self, local_branch): """ |