-
Notifications
You must be signed in to change notification settings - Fork 1.6k
internal: git-hook tries to add a file that does not exist #14670
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
Ah, no, it tries to rust-clippy/util/etc/pre-commit.sh Line 9 in 2422f0b
Maybe the shell script wasn't updated after the removal of whatever was at this path? |
Yup, removed that line and everything works now |
The line was added in 6035e05, and at that time there were indeed some files matching the pathspec, e.g. https://github.com/rust-lang/rust-clippy/blob/6035e050e83cc991f94797eef4d720c0b61d8955/clippy_lints/src/lib.deprecated.rs |
it was added back in 6035e05, at which time there were some files matching it, e.g. https://github.com/rust-lang/rust-clippy/blob/6035e050e83cc991f94797eef4d720c0b61d8955/clippy_lints/src/lib.deprecated.rs fixes rust-lang#14670
it was added back in 6035e05, at which time there were some files matching it, e.g. https://github.com/rust-lang/rust-clippy/blob/6035e050e83cc991f94797eef4d720c0b61d8955/clippy_lints/src/lib.deprecated.rs fixes #14670 changelog: none
Summary
I was trying to set-up a development environment to add a lint. I set up the git hook, and defined the lint. When I tried to commit the intermediate results, the git hook failed.
Reproducer
I tried this code:
I expected to see this happen:
successful commit
Instead, this happened:
This is what the output of
git diff
looked like after I rangit add .
:so it seems like the pathspec was trying to match the third path, but failed because of the extra
.
either before or after the*
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: