git-remote-hg icon indicating copy to clipboard operation
git-remote-hg copied to clipboard

Clone on windows fails due to invalid names

Open p-bakker opened this issue 9 years ago • 2 comments

Hi, trying to clone a Mercurial repo on Windows using git-remote-hg, but it bombs out due to an attempt to create a file who's fileName contains illegal characters for a fileName on Windows (in my case the fileName contains double quotes, but single quotes, slashes, astrixes or questionMarks would have the same issue).

Now, I was wondering if this something that could be made to work properly inside git-remote-hg somehow, for example by escaping those invalid characters and perform the needed mapping, so as a user you don't have to worry about it.

Or should I just bite the bullet and try to fix my repo somehow?

Online resources tell me to configure my git repo to do a sparse checkout, excluding the files causing issues. Can look into this, but it requires to alter the git config file in your repo and since I'm still gloning, I don't have such a repo nor config file yet

p-bakker avatar Jun 16 '16 09:06 p-bakker

We could try to fix this, but first we need to know what is the expected behavior.

How does Mercurial store the files on Windows?

felipec avatar Jun 04 '19 14:06 felipec

Hi! I have a solution for this problem. Please look at #79

IngeniousOne avatar Jul 31 '19 14:07 IngeniousOne