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
git_repository_init_ext and git_clone fail with path too long #6604
Comments
Is this a libgit2 problem or a LibGit2Sharp problem? If it's the former, can you provide repro steps? |
I can reproduce it through LibGit2Sharp, but the error comes from libgit2. |
Did you read this documentation? libgit2/docs/win32-longpaths.md Line 2 in 9903482
|
Well thats nice to now. As coming from LibGit2Sharp there was no such information |
After testing some changes in libgit2, I found our problem which seems to be util/fs_path.c/git_fs_path_validate_str_length_with_suffix Lines 1727 to 1748 in 42b5d85
Removing || total_len > MAX_PATH from the if clause fixed our problem.This code is potentially duplicated by Lines 683 to 709 in 42b5d85
|
@ethomson Any thoughts about this? |
Regarding libgit2/libgit2sharp#2051
Reproduction steps
When using git_repository_init_ext and git_clone on a path which is longer than 260, it will fail with path too long
Expected behavior
work like expected
Actual behavior
path too long
Version of libgit2 (release number or SHA1)
1.6.4 through LibGit2Sharp.NativeBinaries 2.0.320
Operating system(s) tested
Win 10 22H2
The text was updated successfully, but these errors were encountered: