{"action":"created","issue":{"url":"https://api.github.com/repos/phpro/grumphp/issues/109","repository_url":"https://api.github.com/repos/phpro/grumphp","labels_url":"https://api.github.com/repos/phpro/grumphp/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/phpro/grumphp/issues/109/comments","events_url":"https://api.github.com/repos/phpro/grumphp/issues/109/events","html_url":"https://github.com/phpro/grumphp/issues/109","id":131653875,"number":109,"title":"GrumPHP in git submodules","user":{"login":"nr404","id":915360,"avatar_url":"https://avatars.githubusercontent.com/u/915360?v=3","gravatar_id":"","url":"https://api.github.com/users/nr404","html_url":"https://github.com/nr404","followers_url":"https://api.github.com/users/nr404/followers","following_url":"https://api.github.com/users/nr404/following{/other_user}","gists_url":"https://api.github.com/users/nr404/gists{/gist_id}","starred_url":"https://api.github.com/users/nr404/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nr404/subscriptions","organizations_url":"https://api.github.com/users/nr404/orgs","repos_url":"https://api.github.com/users/nr404/repos","events_url":"https://api.github.com/users/nr404/events{/privacy}","received_events_url":"https://api.github.com/users/nr404/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-05T14:07:08Z","updated_at":"2016-02-05T15:52:02Z","closed_at":null,"body":"I tried to add GrumPHP to a repo that is a submodule of another repository but is doesn't quite work.\r\n\r\nIf I use the default git directory in the config the git:init breaks because it tries to access the wrong directory.\r\nAs the submodule directory ( /home/user/Code/repo-with-submodules/submodule-name/ ) does not have its own .git directory and the hook should be created in /home/user/Code/repo-with-submodules/.git/modules/submodule-name/\r\n\r\nusing ../ obviously sets them for the wrong repo\r\n\r\nCurrently I don't really have an idea how to fix this without running something like 'git rev-parse --git-dir' to get the actual hook directory and maybe also introduce a overwriteable working directory."},"comment":{"url":"https://api.github.com/repos/phpro/grumphp/issues/comments/180411828","html_url":"https://github.com/phpro/grumphp/issues/109#issuecomment-180411828","issue_url":"https://api.github.com/repos/phpro/grumphp/issues/109","id":180411828,"user":{"login":"veewee","id":1618158,"avatar_url":"https://avatars.githubusercontent.com/u/1618158?v=3","gravatar_id":"","url":"https://api.github.com/users/veewee","html_url":"https://github.com/veewee","followers_url":"https://api.github.com/users/veewee/followers","following_url":"https://api.github.com/users/veewee/following{/other_user}","gists_url":"https://api.github.com/users/veewee/gists{/gist_id}","starred_url":"https://api.github.com/users/veewee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/veewee/subscriptions","organizations_url":"https://api.github.com/users/veewee/orgs","repos_url":"https://api.github.com/users/veewee/repos","events_url":"https://api.github.com/users/veewee/events{/privacy}","received_events_url":"https://api.github.com/users/veewee/received_events","type":"User","site_admin":false},"created_at":"2016-02-05T15:52:01Z","updated_at":"2016-02-05T15:52:01Z","body":"Hi @nr404,\r\n\r\nCurrently gitlib, the git library we are using, does not support git submodules. \r\nMore info van be found at: https://github.com/phpro/grumphp/blob/master/doc/issues/grumphp-is-not-working-with-submodules.md\r\n\r\nAs long as this is not supported, it will be hacking around this issue. "}}