kazazor / git-pre-commit

A pre-commit hook that ignores all the unstagged changes while performing the pre-commit command you wrote (Using Shell, Gulp, Grunt etc..)
https://www.npmjs.com/package/git-pre-commit
MIT License
18 stars 5 forks source link

Replace ${path.sep} with / in require calls #34

Closed Goldob closed 7 years ago

Goldob commented 7 years ago

Fixes #33.

Path separator in require calls is /, regardless of the platform. Replacing it with Windows' \ breaks the script.

https://nodejs.org/api/modules.html#modules_all_together