{"action":"opened","issue":{"url":"https://api.github.com/repos/ajoberstar/gradle-git/issues/166","repository_url":"https://api.github.com/repos/ajoberstar/gradle-git","labels_url":"https://api.github.com/repos/ajoberstar/gradle-git/issues/166/labels{/name}","comments_url":"https://api.github.com/repos/ajoberstar/gradle-git/issues/166/comments","events_url":"https://api.github.com/repos/ajoberstar/gradle-git/issues/166/events","html_url":"https://github.com/ajoberstar/gradle-git/issues/166","id":142504735,"number":166,"title":"How to use Grgit to fetch from remote?","user":{"login":"noel-yap","id":1414385,"avatar_url":"https://avatars.githubusercontent.com/u/1414385?v=3","gravatar_id":"","url":"https://api.github.com/users/noel-yap","html_url":"https://github.com/noel-yap","followers_url":"https://api.github.com/users/noel-yap/followers","following_url":"https://api.github.com/users/noel-yap/following{/other_user}","gists_url":"https://api.github.com/users/noel-yap/gists{/gist_id}","starred_url":"https://api.github.com/users/noel-yap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/noel-yap/subscriptions","organizations_url":"https://api.github.com/users/noel-yap/orgs","repos_url":"https://api.github.com/users/noel-yap/repos","events_url":"https://api.github.com/users/noel-yap/events{/privacy}","received_events_url":"https://api.github.com/users/noel-yap/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-21T23:57:05Z","updated_at":"2016-03-21T23:57:05Z","closed_at":null,"body":"The following code:\r\n\r\n```\r\n    final git = Grgit.open(\"${oldVersionRoot}/.git\")\r\n    git.fetch(refSpecs: [\"release/${oldVersion}\"])\r\n```\r\nemits:\r\n\r\n```\r\n    Caused by: org.eclipse.jgit.errors.TransportException: Remote does not have release/2.1747.0 available for fetch.\r\n```\r\n\r\nWhat's the right incantation to get `fetch` to work?"}}