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 am unable to commit a change to my submodule if there is no other modifications to commit.
lint-staged doesn't work when the git configuration diff.submodule is set to anything other than "short".
It would be nice if the tool could force this setting to the only value it can handle when running git diff.
thanks for the issue. Can you try editing your local lint-staged to add the required option, to see if it helps?
As you can see here in lint-staged/lib/gitWorkflow.js, we already set some settings for diffing:
Description
Hello,
I am unable to commit a change to my submodule if there is no other modifications to commit.
lint-staged doesn't work when the git configuration
diff.submodule
is set to anything other than "short".It would be nice if the tool could force this setting to the only value it can handle when running git diff.
https://git-scm.com/docs/git-diff#Documentation/git-diff.txt---submoduleltformatgt
Steps to reproduce
git config diff.submodule diff
Debug Logs
expand to view
Environment
lint-staged
:The text was updated successfully, but these errors were encountered: