{"action":"created","issue":{"url":"https://api.github.com/repos/therealklanni/git-guppy/issues/81","repository_url":"https://api.github.com/repos/therealklanni/git-guppy","labels_url":"https://api.github.com/repos/therealklanni/git-guppy/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/therealklanni/git-guppy/issues/81/comments","events_url":"https://api.github.com/repos/therealklanni/git-guppy/issues/81/events","html_url":"https://github.com/therealklanni/git-guppy/issues/81","id":164853230,"number":81,"title":"commit not aborting","user":{"login":"LucaVazz","id":4174525,"avatar_url":"https://avatars.githubusercontent.com/u/4174525?v=3","gravatar_id":"","url":"https://api.github.com/users/LucaVazz","html_url":"https://github.com/LucaVazz","followers_url":"https://api.github.com/users/LucaVazz/followers","following_url":"https://api.github.com/users/LucaVazz/following{/other_user}","gists_url":"https://api.github.com/users/LucaVazz/gists{/gist_id}","starred_url":"https://api.github.com/users/LucaVazz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LucaVazz/subscriptions","organizations_url":"https://api.github.com/users/LucaVazz/orgs","repos_url":"https://api.github.com/users/LucaVazz/repos","events_url":"https://api.github.com/users/LucaVazz/events{/privacy}","received_events_url":"https://api.github.com/users/LucaVazz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/therealklanni/git-guppy/labels/windows","name":"windows","color":"006b75"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-11T14:38:15Z","updated_at":"2016-07-14T10:45:40Z","closed_at":null,"body":"Hey, I hae the following test - setup:\r\n**./package.json** \r\n````\r\n{\r\n  \"name\": \"guppy-test\",\r\n  \"devDependencies\": {\r\n    \"git-guppy\": \"^1.2.1\",\r\n    \"gulp\": \"^3.9.1\",\r\n    \"gulp-task-loader\": \"^1.2.1\",\r\n    \"guppy-pre-commit\": \"^0.3.0\"\r\n  }\r\n}\r\n````\r\n**./gulpfile.js**\r\n````JavaScript\r\nvar gulp = require('gulp');\r\nrequire('gulp-task-loader')('hooks_gulp-tasks');\r\n\r\ngulp.task('pre-commit', ['rejector']);\r\n````\r\n**./hooks_gulp-tasks/rejector.js**\r\n````JavaScript\r\nvar gulp = require('gulp');\r\nvar guppy = require('git-guppy')(gulp);\r\n\r\nmodule.exports = function () {\r\n  console.log(\"Nope, I'm rejecting \", guppy.src('pre-commit'), '!');\r\n\r\n  return 1;\r\n};\r\n````\r\n\r\nBut every commit is just passing and completing without any trace of the `return 1`.\r\n\r\n**Versions:**\r\n````\r\nλ node --version\r\nv6.3.0\r\nλ npm --version\r\n3.10.3\r\nλ gulp --version\r\n[16:33:54] CLI version 1.2.1\r\n[16:33:54] Local version 3.9.1\r\nλ git --version\r\ngit version 2.9.0.windows.1\r\n````\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/therealklanni/git-guppy/issues/comments/232630418","html_url":"https://github.com/therealklanni/git-guppy/issues/81#issuecomment-232630418","issue_url":"https://api.github.com/repos/therealklanni/git-guppy/issues/81","id":232630418,"user":{"login":"LucaVazz","id":4174525,"avatar_url":"https://avatars.githubusercontent.com/u/4174525?v=3","gravatar_id":"","url":"https://api.github.com/users/LucaVazz","html_url":"https://github.com/LucaVazz","followers_url":"https://api.github.com/users/LucaVazz/followers","following_url":"https://api.github.com/users/LucaVazz/following{/other_user}","gists_url":"https://api.github.com/users/LucaVazz/gists{/gist_id}","starred_url":"https://api.github.com/users/LucaVazz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LucaVazz/subscriptions","organizations_url":"https://api.github.com/users/LucaVazz/orgs","repos_url":"https://api.github.com/users/LucaVazz/repos","events_url":"https://api.github.com/users/LucaVazz/events{/privacy}","received_events_url":"https://api.github.com/users/LucaVazz/received_events","type":"User","site_admin":false},"created_at":"2016-07-14T10:45:40Z","updated_at":"2016-07-14T10:45:40Z","body":"Interestingly, I can't get it to work at all on my Debian-machine:\r\n````\r\nroot@gitlab:/home/luca/Desktop/guppy-test# cat > test_debian.txt\r\nroot@gitlab:/home/luca/Desktop/guppy-test# git add .\r\nroot@gitlab:/home/luca/Desktop/guppy-test# git commit -m \"debian\"\r\nError: spawn ENOENT\r\n    at errnoException (child_process.js:1000:11)\r\n    at Process.ChildProcess._handle.onexit (child_process.js:791:34)\r\n[master 736ba10] debian\r\n 1 file changed, 0 insertions(+), 0 deletions(-)\r\n create mode 100644 test_debian.txt\r\nroot@gitlab:/home/luca/Desktop/guppy-test# \r\n````\r\nIt seems like `ENOENT` occurs while the `pre-commit`-file created by guppy tries to spawn the `pre-commit`-gulp-task..."}}
{"actor":{"display_login":"LucaVazz"}}