-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Git clean now recurses into ignored and excluded directories in 2.27 #2732
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
Comments
There's a corollary example that doesn't involve the exclude option. If you also add This is a problem for repos that have nested |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This is still an issue with git 2.31.1. Git should not be enumerating ignored directories. |
This is not a Windows-specific issue. Let's continue to discuss it on the Git mailing list (where you reported this issue also); It seems that @peff identified the culprit: https://lore.kernel.org/git/YHf%[email protected]/t/#u |
At first I thought #2715 covered my issue until I did more investigation and found the issue I'm encountering is specific to changes in git clean's
-e
behavior.Setup
defaults?
to the issue you're seeing?
Not that I'm aware of. I have other users reporting this issue in our repo with git 2.27, as well.
Details
CMD
Minimal, Complete, and Verifiable example
this will help us understand the issue.
After running the repro above,
git clean -ffdxn -e directory30
should run without showing long filename errors in that directory.It does run without showing long filename errors in git version 2.26.2.windows.1:
As of git version 2.27.0.windows.1, using clean with exclude now generates long filename errors:
URL to that repository to help us with testing?
Repro covers the issue I think.
The text was updated successfully, but these errors were encountered: