paleite / eslint-plugin-diff

Run ESLint on your changes only
https://npm.im/eslint-plugin-diff
MIT License
172 stars 13 forks source link

fatal: bad revision '"HEAD"' linux plateform #22

Closed maxerbox closed 2 years ago

maxerbox commented 2 years ago

It seems that the HEAD argument of the git diff command is a little bit too much escaped. I get :

command failed: git diff --diff-algorithm=histogram --diff-filter=ACM -M100% --relative --unified=0 "HEAD" -- "useFormsListCards.ts" fatal: bad revision '"HEAD"' 

Consider removing the double quotes

Version I'm currently using : 1.0.13 I also tested with 1.0.14. It is critical in this version

I've the same issue with the function sanitizeFilePath.

paleite commented 2 years ago

Thanks! looking into it

paleite commented 2 years ago

@maxerbox Could you see if version 1.0.15-0 fixes your issue?

maxerbox commented 2 years ago

Yes, it is fixed !