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

Windows Fork Doesn't support long file paths even though git does #2401

Open
jasonnicholson opened this issue Jan 8, 2025 · 4 comments
Open

Comments

@jasonnicholson
Copy link

I have a set files I am trying to stash that have file path length longer than 260 characters. However, Fork does not support dealing with this.
image

Win32 long paths are enabled:
image

We have configured this registry key as well:
image

git stash push -u works fine in git bash.

@DanPristupov
Copy link
Contributor

DanPristupov commented Jan 13, 2025

I have a set files I am trying to stash that have file path length longer than 260 characters.
...
git stash push -u

But those are not the same.

If you simply click on the 'Stash' icon on the toolbar, it will run same git stash push and it will work properly.

@jasonnicholson
Copy link
Author

jasonnicholson commented Jan 13, 2025

image

The problem is how the error is reported. The error message leads me to believe the issue is a long-path issue. It is not a long-path issue. It's a argument list is too long problem. See screenshot below. The screen uses the same command copied from Fork that generated the error.
image

Update Fork or not. It's up to you. On my end, I have a solution.

@DanPristupov
Copy link
Contributor

DanPristupov commented Jan 13, 2025

You compare windows system error (where args is a string) to a bash/unix system error (where args is a list). Different operations systems have different architectures and error messages.

@jasonnicholson
Copy link
Author

Yes, I am aware and understand OS nuance difference is challenging.

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

No branches or pull requests

2 participants