Closed orgjscom closed 8 years ago
So this situation happens when
pre-git
module has not been installed yetOne just needs to put hooks from this projects into fresh git repo's .git folder to test this
Best way to recreate the problem
npm install
npm run e2e
which goes through the script test/e2e.sh
and creates
a new test folder inside /tmp/test-pre-git
folder/tmp/test-pre-git
folder and remove node_modules
foldergit commit --allow-empty -m "test"
you should see the problem - tries to use node modules folder and fails.git/hooks/pre-commit: line 3: ./node_modules/.bin/pre-commit: No such file or directory
Would you like to implement this and add to all hook files and submit a pull request? Will gladly accept it!
]