I am trying to use hggit to use mercurial as a client for a git repository.
I can't push to the git repository because some genius created a branch called GTS 170528 (note the space).
When pushing from hg to git, I get the error:
dulwich.errors.RefFormatError: refs/heads/GTS 170528
I can only assume that the space is the problem. I am aware that you can't really rename an hg branch.
Any ideas on how to get either Mercurial to ignore it on the outbound, or git not to care about it on the inbound?
the shortest path would be to get the branch renamed in git, in order to have it comply with git-check-ref-format
you can find your very same case reported in dulwich issues, which resulted in a new issue for hggit but the latter won't help your scenario
therefore, as said, get the git branch to comply with
check-ref-formatPS: about renaming Mercurial branches, keep in mind that also bookmarks work for hggit sync, not only named branches