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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Case sensitivity in finding .git root folder #1403
Comments
Are you working on a case-sensitive file system? I wouldn't want to start converting filename case manually inside lint-staged, it sounds like introducing a bug. |
Working on windows, but regardless of file system it's a simple string comparison that's going wrong isn't it? |
If the file system is case-sensitive, then EDIT: I assume your problem is that your FS is case-insensitive but Git is sensitive; have to Google around if there's some common solutions. |
Hi! 馃憢
Firstly, thanks for your work on this project! 馃檪
Today I used patch-package to patch
[email protected]
for the project I'm working on.I have a repo with two directories, one frontend, one backend. So the .git root is not in my frontend folder.
There have been fixes for this issue already, checking for the .git folder in the parent directory, but my specific issue is that the current code is case sensitive and our frontend directory is ../Clients, causing the
lastIndexOf
function not to find anything.Simple solution: toLowerCase().
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: