I'm running a git hook (pre-push) and getting a fatal error.
Here's my code:
#!/usr/local/bin node
var exec = require('child_process').exec
process.exit(1)
Nothing crazy, just testing things out.
And it's executable.
But when I run a push I get:
fatal: cannot exec '.git/hooks/pre-push': Permission denied
And the process hangs.