Bug? origin/origin/brach, rather than origin/branch

This commit is contained in:
mike cullerton 2022-02-03 07:10:38 -05:00
parent 64ffbde3d9
commit 6fa729900c

View File

@ -61,7 +61,8 @@ class GitService(object):
repo.remotes.origin.push(refspec='{}:{}'.format(git_branch, f'origin/{git_branch}'))
repo.remotes.origin.fetch()
remote_ref = repo.remotes.origin.refs[f'origin/{git_branch}']
# remote_ref = repo.remotes.origin.refs[f'origin/{git_branch}']
remote_ref = repo.remotes.origin.refs[f'{git_branch}']
repo.active_branch.set_tracking_branch(remote_ref)
return repo