{"action":"created","issue":{"url":"https://api.github.com/repos/stevenharman/git_tracker/issues/19","repository_url":"https://api.github.com/repos/stevenharman/git_tracker","labels_url":"https://api.github.com/repos/stevenharman/git_tracker/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/stevenharman/git_tracker/issues/19/comments","events_url":"https://api.github.com/repos/stevenharman/git_tracker/issues/19/events","html_url":"https://github.com/stevenharman/git_tracker/issues/19","id":148161296,"number":19,"title":"Submodule support","user":{"login":"RobotCaleb","id":113401,"avatar_url":"https://avatars.githubusercontent.com/u/113401?v=3","gravatar_id":"","url":"https://api.github.com/users/RobotCaleb","html_url":"https://github.com/RobotCaleb","followers_url":"https://api.github.com/users/RobotCaleb/followers","following_url":"https://api.github.com/users/RobotCaleb/following{/other_user}","gists_url":"https://api.github.com/users/RobotCaleb/gists{/gist_id}","starred_url":"https://api.github.com/users/RobotCaleb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobotCaleb/subscriptions","organizations_url":"https://api.github.com/users/RobotCaleb/orgs","repos_url":"https://api.github.com/users/RobotCaleb/repos","events_url":"https://api.github.com/users/RobotCaleb/events{/privacy}","received_events_url":"https://api.github.com/users/RobotCaleb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-13T19:31:50Z","updated_at":"2016-04-14T16:17:36Z","closed_at":null,"body":"This doesn't behave well when trying to init in a repository that is a submodule.\r\n\r\nI had to `git clone` my submodule repo, then init in there and copy the created hook to the proper location in `../parent/.git/modules/repo/hooks/`\r\n\r\n```\r\n$ git tracker init\r\n/var/lib/gems/2.1.0/gems/git_tracker-1.6.3/lib/git_tracker/hook.rb:20:in `initialize': Not a directory @ rb_sysopen - /home/user/parent/repo/.git/hooks/prepare-commit-msg (Errno::ENO\r\nTDIR)\r\n        from /var/lib/gems/2.1.0/gems/git_tracker-1.6.3/lib/git_tracker/hook.rb:20:in `open'\r\n        from /var/lib/gems/2.1.0/gems/git_tracker-1.6.3/lib/git_tracker/hook.rb:20:in `write'\r\n        from /var/lib/gems/2.1.0/gems/git_tracker-1.6.3/lib/git_tracker/hook.rb:12:in `init_at'\r\n        from /var/lib/gems/2.1.0/gems/git_tracker-1.6.3/lib/git_tracker/hook.rb:8:in `init'\r\n        from /var/lib/gems/2.1.0/gems/git_tracker-1.6.3/lib/git_tracker/runner.rb:19:in `init'\r\n        from /var/lib/gems/2.1.0/gems/git_tracker-1.6.3/lib/git_tracker/runner.rb:11:in `execute'\r\n        from /var/lib/gems/2.1.0/gems/git_tracker-1.6.3/bin/git-tracker:4:in `<top (required)>'\r\n        from /usr/local/bin/git-tracker:23:in `load'\r\n        from /usr/local/bin/git-tracker:23:in `<main>'\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/stevenharman/git_tracker/issues/comments/210030225","html_url":"https://github.com/stevenharman/git_tracker/issues/19#issuecomment-210030225","issue_url":"https://api.github.com/repos/stevenharman/git_tracker/issues/19","id":210030225,"user":{"login":"stevenharman","id":48658,"avatar_url":"https://avatars.githubusercontent.com/u/48658?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenharman","html_url":"https://github.com/stevenharman","followers_url":"https://api.github.com/users/stevenharman/followers","following_url":"https://api.github.com/users/stevenharman/following{/other_user}","gists_url":"https://api.github.com/users/stevenharman/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenharman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenharman/subscriptions","organizations_url":"https://api.github.com/users/stevenharman/orgs","repos_url":"https://api.github.com/users/stevenharman/repos","events_url":"https://api.github.com/users/stevenharman/events{/privacy}","received_events_url":"https://api.github.com/users/stevenharman/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T16:17:36Z","updated_at":"2016-04-14T16:17:36Z","body":"Hello @RobotCaleb,\r\n\r\nSorry for the trouble, but thanks for the report. Are you saying that you had a repo (`/home/users/alice/parent-repo/`) which also had a submodule it in (`/home/users/alice/parent-repo/foo/submodule-repo/`)? And you were trying to run `git tracker init` from the parent repo - e.g., from `/home/users/alice/parent-repo/`?\r\n\r\nCan you lay out, step by step, instructions to recreate the issue?"}}