projects
/
tools
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe56196
)
Silence GitRepository.set_upstream_branch
author
Guido Günther
<agx@sigxcpu.org>
Fri, 26 Apr 2013 22:00:06 +0000
(
00:00
+0200)
committer
Guido Günther
<agx@sigxcpu.org>
Fri, 26 Apr 2013 22:00:06 +0000
(
00:00
+0200)
It's not used within gbp itself so no command line tool expects
an error message to be printed.
gbp/git/repository.py
patch
|
blob
|
history
diff --git
a/gbp/git/repository.py
b/gbp/git/repository.py
index
c2d3baa
..
1c8ea9c
100644
(file)
--- 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):
"""