On Mon, Apr 8, 2013 at 12:13 PM, Felipe Contreras
<[email protected]> wrote:
> --- 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.replace('refs/heads/branches/', '')
This should be more consistent with the rest of the code:
branch = ref[len('refs/heads/branches/'):]
Should I reroll?
--
Felipe Contreras
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html