{"action":"created","issue":{"url":"https://api.github.com/repos/ajoberstar/grgit/issues/66","labels_url":"https://api.github.com/repos/ajoberstar/grgit/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/ajoberstar/grgit/issues/66/comments","events_url":"https://api.github.com/repos/ajoberstar/grgit/issues/66/events","html_url":"https://github.com/ajoberstar/grgit/issues/66","id":82041388,"number":66,"title":"can't use grgit within submodules","user":{"login":"paleozogt","id":310894,"avatar_url":"https://avatars.githubusercontent.com/u/310894?v=3","gravatar_id":"","url":"https://api.github.com/users/paleozogt","html_url":"https://github.com/paleozogt","followers_url":"https://api.github.com/users/paleozogt/followers","following_url":"https://api.github.com/users/paleozogt/following{/other_user}","gists_url":"https://api.github.com/users/paleozogt/gists{/gist_id}","starred_url":"https://api.github.com/users/paleozogt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paleozogt/subscriptions","organizations_url":"https://api.github.com/users/paleozogt/orgs","repos_url":"https://api.github.com/users/paleozogt/repos","events_url":"https://api.github.com/users/paleozogt/events{/privacy}","received_events_url":"https://api.github.com/users/paleozogt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ajoberstar/grgit/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ajoberstar/grgit/milestones/8","html_url":"https://github.com/ajoberstar/grgit/milestones/1.3.0","labels_url":"https://api.github.com/repos/ajoberstar/grgit/milestones/8/labels","id":1113516,"number":8,"title":"1.3.0","description":"","creator":{"login":"ajoberstar","id":486355,"avatar_url":"https://avatars.githubusercontent.com/u/486355?v=3","gravatar_id":"","url":"https://api.github.com/users/ajoberstar","html_url":"https://github.com/ajoberstar","followers_url":"https://api.github.com/users/ajoberstar/followers","following_url":"https://api.github.com/users/ajoberstar/following{/other_user}","gists_url":"https://api.github.com/users/ajoberstar/gists{/gist_id}","starred_url":"https://api.github.com/users/ajoberstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajoberstar/subscriptions","organizations_url":"https://api.github.com/users/ajoberstar/orgs","repos_url":"https://api.github.com/users/ajoberstar/repos","events_url":"https://api.github.com/users/ajoberstar/events{/privacy}","received_events_url":"https://api.github.com/users/ajoberstar/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":3,"state":"open","created_at":"2015-05-16T19:55:44Z","updated_at":"2015-05-30T17:15:33Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-05-28T17:29:26Z","updated_at":"2015-05-30T17:15:33Z","closed_at":"2015-05-30T17:15:33Z","body":"grgit breaks when run from within a submodule.  (Note that this issue is distinct from #60, where using grgit in a regular project that *contains* submodules causes it to misbehave.  This issue is when you run grgit from *inside* a submodule.)\r\n\r\nFor example:\r\n\r\n```\r\n> git clone --recursive git@github.com:paleozogt/paleozogt-sandbox.git\r\n    ...snip...\r\n\r\n> cd paleozogt-sandbox/grgit \r\n\r\n> ./gradlew tasks\r\n\r\nFAILURE: Build failed with an exception.\r\n\r\n* Where:\r\nBuild file '/Users/asimmons/Development/paleozogt-sandbox/grgit/build.gradle' line: 5\r\n\r\n* What went wrong:\r\nAn exception occurred applying plugin request [id: 'org.ajoberstar.defaults', version: '0.5.3']\r\n> repository not found: /Users/asimmons/Development/paleozogt-sandbox/grgit\r\n\r\n* Try:\r\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.\r\n\r\nBUILD FAILED\r\n\r\nTotal time: 2.628 secs\r\n```\r\n\r\nThis example shows it happening in the grgit source, but the same error happens with a grgit-using submodule.\r\n\r\nNote that in the example the submodule really is a git repo:\r\n```\r\n> git tag\r\n0.2.2-beta\r\nv0.1.0\r\nv0.2.0\r\nv0.2.1\r\nv0.2.2\r\nv0.2.3\r\nv0.2.4-milestone.1+1643463\r\nv0.3.0\r\nv0.3.1\r\nv0.4.0\r\nv0.4.0-milestone.1\r\nv0.4.1\r\nv1.0.0\r\nv1.0.0-milestone.1\r\nv1.0.0-milestone.2\r\nv1.0.0-rc.1\r\nv1.0.0-rc.2\r\nv1.1.0\r\nv1.1.0-milestone.1\r\nv1.1.0-rc.1\r\nv1.2.0\r\nv1.2.0-rc.1\r\n```\r\n\r\nEven jgit can operate on it:\r\n```\r\n> ~/Downloads/org.eclipse.jgit.pgm-3.7.0.201502260915-r.sh tag\r\nSLF4J: Failed to load class \"org.slf4j.impl.StaticLoggerBinder\".\r\nSLF4J: Defaulting to no-operation (NOP) logger implementation\r\nSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\r\n0.2.2-beta\r\nv0.1.0\r\nv0.2.0\r\nv0.2.1\r\nv0.2.2\r\nv0.2.3\r\nv0.2.4-milestone.1+1643463\r\nv0.3.0\r\nv0.3.1\r\nv0.4.0\r\nv0.4.0-milestone.1\r\nv0.4.1\r\nv1.0.0\r\nv1.0.0-milestone.1\r\nv1.0.0-milestone.2\r\nv1.0.0-rc.1\r\nv1.0.0-rc.2\r\nv1.1.0\r\nv1.1.0-milestone.1\r\nv1.1.0-rc.1\r\nv1.2.0\r\nv1.2.0-rc.1\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ajoberstar/grgit/issues/comments/107067269","html_url":"https://github.com/ajoberstar/grgit/issues/66#issuecomment-107067269","issue_url":"https://api.github.com/repos/ajoberstar/grgit/issues/66","id":107067269,"user":{"login":"ajoberstar","id":486355,"avatar_url":"https://avatars.githubusercontent.com/u/486355?v=3","gravatar_id":"","url":"https://api.github.com/users/ajoberstar","html_url":"https://github.com/ajoberstar","followers_url":"https://api.github.com/users/ajoberstar/followers","following_url":"https://api.github.com/users/ajoberstar/following{/other_user}","gists_url":"https://api.github.com/users/ajoberstar/gists{/gist_id}","starred_url":"https://api.github.com/users/ajoberstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajoberstar/subscriptions","organizations_url":"https://api.github.com/users/ajoberstar/orgs","repos_url":"https://api.github.com/users/ajoberstar/repos","events_url":"https://api.github.com/users/ajoberstar/events{/privacy}","received_events_url":"https://api.github.com/users/ajoberstar/received_events","type":"User","site_admin":false},"created_at":"2015-05-30T17:15:33Z","updated_at":"2015-05-30T17:15:33Z","body":"Conveniently, the fix @facewindu proposed for #64 also seems to fix this. Can you try 1.3.0-milestone.1 to verify? (use `Grgit.open()` instead of `Grgit.open(dir: 'something')`)."}}