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

install.js doesn't work with link file of .git. #144

Open wonderyl opened 5 years ago

wonderyl commented 5 years ago

This is the current code in install.js if (!exists(git) || !fs.lstatSync(git).isDirectory()) return; Which skips the install if .git is actually a link file.

In our case, we have .git that is a soft link file that points to another location. So the install doesn't work.