diff options
author | Dusty Phillips <dusty@linux.ca> | 2013-04-11 07:23:08 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-11 10:46:47 -0700 |
commit | 11dc88f49c1dc177132fb724d46c80ae8e6a2e99 (patch) | |
tree | 63e249607b4014866920e4cbc233ff7efaee1839 /contrib/remote-helpers/git-remote-hg | |
parent | remote-hg: update tags globally (diff) | |
download | tgif-11dc88f49c1dc177132fb724d46c80ae8e6a2e99.tar.xz |
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>
Diffstat (limited to 'contrib/remote-helpers/git-remote-hg')
-rwxr-xr-x | contrib/remote-helpers/git-remote-hg | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/remote-helpers/git-remote-hg b/contrib/remote-helpers/git-remote-hg index fc04f81326..ec599c60ff 100755 --- a/contrib/remote-helpers/git-remote-hg +++ b/contrib/remote-helpers/git-remote-hg @@ -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: |