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
Culprit is the determination of the git repo dir
under cygwin git rev-parse --show-toplevel leads to /cygrdrive/c/home/user/project process.cwd() leads to C:/cygdrive/c/home/user/project
So all changed files are finaly resolved to something like `......\cygdrive\c\home\user\project\changed.js
and are filtered as relative paths
Steps to reproduce
npx lint-staged under a cygwin environment
Debug Logs
Environment
OS: Windows 10
Node.js: v14.17.6
lint-staged: 11.1.1
The text was updated successfully, but these errors were encountered:
Description
No staged files match any configured task.
Culprit is the determination of the git repo dir
under cygwin
git rev-parse --show-toplevel
leads to/cygrdrive/c/home/user/project
process.cwd()
leads toC:/cygdrive/c/home/user/project
So all changed files are finaly resolved to something like `......\cygdrive\c\home\user\project\changed.js
and are filtered as relative paths
Steps to reproduce
npx lint-staged under a cygwin environment
Debug Logs
Environment
lint-staged
: 11.1.1The text was updated successfully, but these errors were encountered: