1
0
mirror of https://github.com/git/git.git synced 2024-10-22 12:28:32 +02:00

remote-hg: push to the appropriate branch

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Dusty Phillips 2013-04-11 07:23:08 -05:00 committed by Junio C Hamano
parent 7a6c1859b6
commit 11dc88f49c

@ -625,6 +625,10 @@ def parse_commit(parser):
if merge_mark:
get_merge_files(repo, p1, p2, files)
# Check if the ref is supposed to be a named branch
if ref.startswith('refs/heads/branches/'):
extra['branch'] = ref[len('refs/heads/branches/'):]
if mode == 'hg':
i = data.find('\n--HG--\n')
if i >= 0: