Skip to content

Commit 11dc88f

Browse files
Dusty Phillipsgitster
authored andcommitted
remote-hg: push to the appropriate branch
Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7a6c185 commit 11dc88f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contrib/remote-helpers/git-remote-hg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,10 @@ def parse_commit(parser):
625625
if merge_mark:
626626
get_merge_files(repo, p1, p2, files)
627627

628+
# Check if the ref is supposed to be a named branch
629+
if ref.startswith('refs/heads/branches/'):
630+
extra['branch'] = ref[len('refs/heads/branches/'):]
631+
628632
if mode == 'hg':
629633
i = data.find('\n--HG--\n')
630634
if i >= 0:

0 commit comments

Comments
 (0)