Windows: wrong path after cloning with ssh address given by Github or Gitlab
On Windows, after cloning with a ssh address given by Gitlab or Github (for this example git@gricad-gitlab.univ-grenoble-alpes.fr:meige-legi/scientific-computing-m2-efm.git
), the path is wrong:
[paths]
default = C:\Users\AUGIER~1\AppData\Local\Temp\git@gricad-gitlab.univ-grenoble-alpes.fr:meige-legi\scientific-computing-m2-efm.git
Instead, the correct path to push is
git+ssh://git@gricad-gitlab.univ-grenoble-alpes.fr:meige-legi/scientific-computing-m2-efm.git
If one uses this address, the default path is fine, but this is not the address given by Gitlab or Github, which do not include the git+ssh://
.
It seems that hg-git thinks the given path is a relative path and it tries to transform it to an absolute path. Do you know where it is done? I can try to work on a fix (since I have access to a Windows computer where I can reproduce).
Edited by Pierre Augier