observing / pre-commit

Automatically installs a git pre-commit script in your git repository which runs your `npm test` on pre-commit
MIT License
1.88k stars 153 forks source link

Include workaround for magit with explaining note #148

Open jackmac92 opened 4 years ago

jackmac92 commented 4 years ago

Hey this fixes something that has been a slightly bothersome problem for me, and I haven't seen any reason to believe it would cause regressions for other users but I'm not sure how to be sure.

Without this "fix", magit (git interface in emacs) encounters the following error GitError! pathspec ':/' did not match any file(s) known to git

I do not really understand why, but this was an accurate description of my issue and the proposed fix worked.

Let me know what other sort of QA I can do to verify this won't impact other users!

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 95.413% when pulling 21382798d4d2880ce4417ef0a091dd5f13bb21be on jackmac92:master into a84bdc87aabf79493343a366872ab204a62b1613 on observing:master.