Closed taivokasper closed 7 years ago
The root problem here is that git does not allow/support both parent and parent/child as branches. One could address this using --single-branch when cloning and/or using a convenient refspec.
Alternatively, the above commit adds a configuration setting that makes the git-remote-hg filter out any unwanted remote names (branches, bookmarks) such as in particular unsupported cases. For example, the following should now work with the provided example: git clone -c remote-hg.ignore-name=test1 "hg::file:///tmp/nested-branches-repro" /tmp/git-nested-branches-repro
That should suffice to get things going again, or otherwise some other way around this limitation will have to be found.
Thank you very much!
I was successfully using git-remote-hg until someone added those two branches to the repository. Now I cannot pull or clone it.
I included a sample mercurial repository sample-mercurial-repo.zip unzip it with
unzip -d /tmp /tmp/sample-mercurial-repo.zip
and then try doing a local clone withgit clone "hg::file:///tmp/nested-branches-repro" /tmp/git-nested-branches-repro
I get the following error: