{"action":"closed","issue":{"url":"https://api.github.com/repos/bahmutov/pre-git/issues/63","labels_url":"https://api.github.com/repos/bahmutov/pre-git/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/bahmutov/pre-git/issues/63/comments","events_url":"https://api.github.com/repos/bahmutov/pre-git/issues/63/events","html_url":"https://github.com/bahmutov/pre-git/issues/63","id":125704020,"number":63,"title":"Hooks shebang broken","user":{"login":"grit96","id":3957608,"avatar_url":"https://avatars.githubusercontent.com/u/3957608?v=3","gravatar_id":"","url":"https://api.github.com/users/grit96","html_url":"https://github.com/grit96","followers_url":"https://api.github.com/users/grit96/followers","following_url":"https://api.github.com/users/grit96/following{/other_user}","gists_url":"https://api.github.com/users/grit96/gists{/gist_id}","starred_url":"https://api.github.com/users/grit96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grit96/subscriptions","organizations_url":"https://api.github.com/users/grit96/orgs","repos_url":"https://api.github.com/users/grit96/repos","events_url":"https://api.github.com/users/grit96/events{/privacy}","received_events_url":"https://api.github.com/users/grit96/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-08T22:03:04Z","updated_at":"2016-01-08T22:53:47Z","closed_at":"2016-01-08T22:53:47Z","body":"The node shebang in the hook files causes an error with /usr/bin/env:\r\n```\r\n/usr/bin/env: node --harmony: No such file or directory\r\n````\r\nIt's because the command gets treated as this: `$ /usr/bin/env \"node --harmony\"` which will fail, whereas `$ /usr/bin/env node --harmony` does not.\r\n\r\nA better way would be to call the JS files from the hooks with `/usr/bin/env node --harmony` prefixed, and remove the shebang from the JS files."}}