Skip to content

Commit

Permalink
remote-hg: push to the appropriate branch
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Dusty Phillips authored and Junio C Hamano committed Apr 11, 2013
1 parent 7a6c185 commit 11dc88f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/remote-helpers/git-remote-hg
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 11dc88f

Please sign in to comment.