Help about Mercurial internal, where the default path is obtained from the address given to clone?

PIERRE AUGIER pierre.augier at univ-grenoble-alpes.fr
Fri Dec 11 11:27:32 UTC 2020


Hi,

I'd like to try to fix an annoying issue that colleagues and students using Windows are encountering with hg-git. The issue is described here https://foss.heptapod.net/mercurial/hg-git/-/issues/335.

On Windows, cloning a repo with the address given by Gitlab and Github (something like git at gricad-gitlab.univ-grenoble-alpes.fr:myusername\myrepo.git) works fine but the default path is completely wrong:

[paths]
default = C:\Users\AUGIER~1\AppData\Local\Temp\git at gricad-gitlab.univ-grenoble-alpes.fr:myusername\myrepo.git

I tried to debug that by printing values in hg-git code but so far everything looks reasonable.

So I guess I need to understand where and why this local path (C:\Users\AUGIER~1\AppData\Local\Temp\) is prepend to the address.

It would be great if someone could give me some hints about how to fix that.

Pierre


More information about the Mercurial mailing list