I did some investigations on what it would take for hg-git to properly track the path names, and I think this does the trick. Passing on
name seems wrong to me. With a path like this:
[paths] default:multi-urls = yes default = path://git, path://bare git = $TESTTMP/gitrepo also-git = $TESTTMP/gitrepo bare = $TESTTMP/repo.git also-bare = $TESTTMP/repo.git
We want a bare
hg pull or
hg push to be invoked for
bare, but not
default. The thinking is that in this case,
default doesn't actually list any paths. I wrote up an MR that tries this out, hg-git!156.
Does this make sense, @marmoute?