Commit 4fa11704 authored by Michal Čihař's avatar Michal Čihař

Ensure we have correct tracking branch set

Fixes rb#565
Fixes rb#576
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent ce151f7d
......@@ -604,6 +604,15 @@ class GitRepository(Repository):
'remote.origin.fetch',
'+refs/heads/{0}:refs/remotes/origin/{0}'.format(branch)
)
self.set_config(
'branch.{0}.remote'.format(branch),
'origin'
)
self.set_config(
'branch.{0}.merge'.format(branch),
'refs/heads/{0}'.format(branch)
)
self.branch = branch
def configure_branch(self, branch):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment