From 46eacf23f1b35acc76e47ec436417d60ebcdfede Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Wed, 8 Jul 2015 19:55:35 +0200 Subject: Use --set-upstream-to instead of deprecated --set-upstream Closes: #791798 --- gbp/scripts/create_remote_repo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gbp/scripts/create_remote_repo.py') 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): -- cgit v1.2.3