Add support for long file paths in CheckoutOptions#2120
Add support for long file paths in CheckoutOptions#2120denis-kudelin wants to merge 1 commit intolibgit2:masterfrom
Conversation
|
@bording could you take a look at this PR and help get it merged? |
|
@bording We really need this bug fixed. Please prioritize it if possible |
|
@Ogglas, I was able to workaround this by setting the longpath option in the global git config. Presuming a global git config already being present on the machine at %USERPROFILE%.gitconfig, we create a temp repo ( |
|
As far as I can tell, this PR isn't actually doing anything. The support for long paths on Windows that was added to libgit2 in libgit2/libgit2#5857 only supports the Furthermore, the
The good news is that LibGit2Sharp has been respecting the |
Summary
Adds support for long file paths in
CheckoutOptionsby introducing theLongPathsproperty and updatingCheckoutStrategywith theGIT_CHECKOUT_LONGPATHSflag.Changes
LongPathsinCheckoutOptions.GIT_CHECKOUT_LONGPATHStoCheckoutStrategy.Motivation
Enhances compatibility with projects that have deeply nested directories or long file names, especially on Windows.