-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 fails on long paths. #5464
Comments
This is most likely a duplicate of #3372. See in particular #3372 (comment) for an explanation why the problem occurs. Also, see #3372 (comment) for a description how this would have to be fixed. Yes, it is involved. Yes, it will require a dedicated volunteer to do it. |
TBH - I do not see why longPaths is even opt in.. if the OS is configured to support it is should be used, then voila. |
Performance reasons. Turning every path into an absolute one that is prefixed with the
That's not how I run Git for Windows, though. I would feel quite careless if I said something like this. Now, I did lay out what needs to be done to address this fully. Given our conversation, I get the impression that you're not exactly eager to do anything about it. Is my impression incorrect? |
I am happy to make long file support the default (and then let users opt out of it if they wish at a global level (or repo) but you have said no to that. (which would potentially entail using long file support to read the initial config) |
Right, that's what I thought. I had made it clear that that's not going to happen on my watch, specifying reasons why that is the case, and you go ahead and ignore those reasons. |
I have been using longpaths for multiple years and the performance has been perfectly acceptable. Perhaps there are specific scenarious for some certain repos, would you remember what you where testing with? I am curious are you running with this enabled on your environment, if not have you tried it in the real world? I would urge you to not close this as not planned - you may not plan on fixing it, but it is a valid bug and when searching if there are no open issues people will waste time (yours included) by filing duplicates. |
git clone
fails if paths are too long, even if core.longpaths is enabled and the kernel has enabled long paths.a
git init, remote fetch and checkout
work.steps to reproduce
enable kernel long path support
configure git core.longpaths globally
make a directory with whose full path is over 256 characters
attempt to clone a repository
expected results
the clone is made
actual results
the clone fails
depending on the length of the directory, it can fail straight away or it can file when trying to write some .git reference objects
notes
individual steps showing that this should work
git version: git version 2.46.0.windows.1 (but I saw nothing in release notes about this being fixed).
The text was updated successfully, but these errors were encountered: