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 want to merge my main branch into a feature branch. If I use auto-commit during merge it works fine.
But without auto-commit files are marked as staged and lint-staged failed due to git error. but with lint-staged --debug it works
Steps to reproduce
merge a branch into your without auto-commit
git commit -m "message" --no-commit --no-ff
after the pre-commit hook is triggered lint-staged failed due to git error (lint-staged on staged files without commit works fine)
Debug Logs
if I run with --debug commit succeded. Looks strange
If auto-commit it works fine (looks like the hook is not triggered) but only if I commit merged changes git error occurred
Environment
OS: Windows 11
Node.js: v16.17.1
lint-staged: ^13.2.2
The text was updated successfully, but these errors were encountered:
Description
I want to merge my main branch into a feature branch. If I use auto-commit during merge it works fine.
But without auto-commit files are marked as staged and lint-staged failed due to git error. but with lint-staged --debug it works
Steps to reproduce
merge a branch into your without auto-commit
git commit -m "message" --no-commit --no-ff
after the pre-commit hook is triggered lint-staged failed due to git error (lint-staged on staged files without commit works fine)
Debug Logs
if I run with --debug commit succeded. Looks strange
If auto-commit it works fine (looks like the hook is not triggered) but only if I commit merged changes git error occurred
Environment
lint-staged
: ^13.2.2The text was updated successfully, but these errors were encountered: