jish / pre-commit

A slightly improved pre-commit hook for git
https://jish.github.io/pre-commit/
Other
796 stars 96 forks source link

Change directory to the root of the git repository before doing any real work #221

Closed jfly closed 9 years ago

jfly commented 9 years ago

This is better than walking upwards until finding a .git directory as some people configure their .git directories to go in different places, see http://stackoverflow.com/a/22081487.