git-hooks-js
git-hooks-js copied to clipboard
A tool to manage and run project git hooks
same as https://github.com/SBoudrias/Inquirer.js/issues/518, [spawn(hookName, args, {stdio: 'inherit'})](https://github.com/tarmolov/git-hooks-js/blob/master/lib/git-hooks.js#L164) will finish, not wait for user input(by inquirer.js). my code is: ```js // .githooks/pre-commit/hello.js #!/usr/bin/env node console.log('start select ...'); 'use strict'; var inquirer...
Inspired by @Kampfgnom's work, but using execSync to simplify things a lot. This fixes #48, meaning that hooks will be installed if the project is a submodule.
On some versions of Debian (and thus, Ubuntu and friends), `node` is installed as `nodejs`. This means that the default node shebang does not work, since there is no `node`...
This follows on from a reqest in https://github.com/tarmolov/git-hooks-js/pull/55, but I'm not including it in that PR as there is too much work for me to do straight away, and I'm...
Currenty it's simply assumed that there is a .git/hooks directory, but the proper way to do this is to lookup the right path: ```Bash git rev-parse --git-path hooks ``` This...