aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/scripts/create_remote_repo.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2015-07-08 19:55:35 +0200
committerGuido Günther <agx@sigxcpu.org>2015-07-08 20:06:31 +0200
commit46eacf23f1b35acc76e47ec436417d60ebcdfede (patch)
treee7e7c8348174bb78fbb918621745db54c4f9cdca /gbp/scripts/create_remote_repo.py
parentdf215f320f3b9a79bf3676feaba7fdf5118469c2 (diff)
Use --set-upstream-to instead of deprecated --set-upstream
Closes: #791798
Diffstat (limited to 'gbp/scripts/create_remote_repo.py')
-rw-r--r--gbp/scripts/create_remote_repo.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/scripts/create_remote_repo.py b/gbp/scripts/create_remote_repo.py
index cbbf2e17..f0a818a6 100644
--- a/gbp/scripts/create_remote_repo.py
+++ b/gbp/scripts/create_remote_repo.py
@@ -220,9 +220,9 @@ def read_yn():
def setup_branch_tracking(repo, remote, branches):
repo.add_remote_repo(name=remote['name'], url=remote['url'], fetch=True)
- gitTrackRemote = GitCommand('branch', ['--set-upstream'])
+ gitTrackRemote = GitCommand('branch', ['--set-upstream-to'])
for branch in branches:
- gitTrackRemote(['%s' % branch, '%s/%s' % (remote['name'], branch)])
+ gitTrackRemote(['%s/%s' % (remote['name'], branch), branch])
def push_branches(remote, branches):