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
lint-staged is unable to operate if committing a git submodule #1348
Comments
Possibly related due to possible incorrect stash handling with presence of git submodules: |
Duplicate: |
Sorry, did you open multiple issues about submodules and also linekd to an earlier issue which seems to be related? It would be easier to track if there was only a sigle issue. There is this submodule test, how does your usage differ from it? https://github.com/lint-staged/lint-staged/blob/master/test/integration/git-submodules.test.js |
Description
Steps to reproduce
I have this state, where both
packages/cli
andapps/docs
are git submodules:Then when I run
npm lint-staged
, it fails on thestash
step. See log below:Debug Logs
expand to view
In particular, notice this:
Basically this is a commit attempt with no changes in the repo, only an update of a git submodule commit.
Environment
lint-staged
: 14.0.1The text was updated successfully, but these errors were encountered: