You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this state, where both packages/cli and apps/docs are git submodules:
❯ git status ✹ ✚
On branch develop
Your branch is up to date with 'origin/develop'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: packages/cli
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: apps/docs (modified content)
Then when I run npm lint-staged, it fails on the stash step. See log below:
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.
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: