##// END OF EJS Templates
subrepo: fix git branch tracking logic (issue2920)
Eric Roshan Eisner -
r15234:5d700b7e default
parent child Browse files
Show More
@@ -833,9 +833,10 class gitsubrepo(abstractsubrepo):
833 for b in branches:
833 for b in branches:
834 if b.startswith('refs/remotes/'):
834 if b.startswith('refs/remotes/'):
835 continue
835 continue
836 remote = self._gitcommand(['config', 'branch.%s.remote' % b])
836 bname = b.split('/', 2)[2]
837 remote = self._gitcommand(['config', 'branch.%s.remote' % bname])
837 if remote:
838 if remote:
838 ref = self._gitcommand(['config', 'branch.%s.merge' % b])
839 ref = self._gitcommand(['config', 'branch.%s.merge' % bname])
839 tracking['refs/remotes/%s/%s' %
840 tracking['refs/remotes/%s/%s' %
840 (remote, ref.split('/', 2)[2])] = b
841 (remote, ref.split('/', 2)[2])] = b
841 return tracking
842 return tracking
General Comments 0
You need to be logged in to leave comments. Login now