Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone on windows fails due to invalid names #57

Open
p-bakker opened this issue Jun 16, 2016 · 2 comments
Open

Clone on windows fails due to invalid names #57

p-bakker opened this issue Jun 16, 2016 · 2 comments

Comments

@p-bakker
Copy link

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

@felipec
Copy link
Owner

felipec commented Jun 4, 2019

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?

@IngeniousOne
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants