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
Error thrown when running lint-staged from a child directory #1027
Comments
Hello, does this happen with we might be missing a test case, so if you can get it to reproduce I'll be happy to fix it an add a test! |
The culprit is indeed my cygwin fix. Sorry for any inconvinience. |
The release is available on: Your semantic-release bot |
Hi, thanks for the quick response! I gave 11.2.2 a try today, and I believe I'm still facing the same issue. I did a bit more digging, and I believe the issue for me is occurring in I have a public repo you can reproduce it on https://github.com/jdanil/skunkworks. Just run |
Thanks @jdanil, let me reopen the ticket. EDIT: This seems to be a Windows-specific issue since I can't replicate it on macOS:
|
I tried 11.2.2 today. And I also got "Current directory is not a git directory!" regardless of whether I ran the script in the root or in individual packages. |
@aleksanderfret any help from Windows users is appreciated! I could also revert the changes of What do you think, @okonet? |
Meh tested on all (for me) available windows plattforms. Worked on cygwin, but not git-bash or git-cmd. The error has been found an corrected in #1029 |
The release is available on: Your semantic-release bot |
Description
After upgrading to v11.2.1,
lint-staged
exits with the following error.I am using
lint-staged
in a monorepo, so each package runs the command (as advised here https://github.com/okonet/lint-staged#how-to-use-lint-staged-in-a-multi-package-monorepo), rather than being run from the repository root directory.Steps to reproduce
lint-staged
in a child directory of the git repository's root.Debug Logs
expand to view
Environment
lint-staged
: 11.2.1The text was updated successfully, but these errors were encountered: