bahmutov / pre-git

Automatically install pre-commit / pre-push hooks in your git repo
168 stars 22 forks source link

Does not find the package if a subfolder from git root #105

Closed bahmutov closed 7 years ago

bahmutov commented 7 years ago

For example if git root repo is above, fails

could not find package under path /Users/irinakous/git/training-github/package.json
lint-and-commit@1.0.0 /Users/irinakous/git/training-github/node/lint-and-commit
└── pre-git@3.14.0 

but the folder git/training-github/node/lint-and-commit has the package.json

bahmutov commented 7 years ago

well, it seems this is Git's feature and cannot be changed https://git-scm.com/docs/githooks/2.9.0