diff options
author | Guido Günther <agx@sigxcpu.org> | 2015-07-08 19:55:35 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2015-07-08 20:06:31 +0200 |
commit | 46eacf23f1b35acc76e47ec436417d60ebcdfede (patch) | |
tree | e7e7c8348174bb78fbb918621745db54c4f9cdca /gbp/scripts/create_remote_repo.py | |
parent | df215f320f3b9a79bf3676feaba7fdf5118469c2 (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.py | 4 |
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): |