{"action":"created","issue":{"url":"https://api.github.com/repos/tools/godep/issues/60","labels_url":"https://api.github.com/repos/tools/godep/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/tools/godep/issues/60/comments","events_url":"https://api.github.com/repos/tools/godep/issues/60/events","html_url":"https://github.com/tools/godep/issues/60","id":28891790,"number":60,"title":"godep restore seems broken: godep puts repository in detached head, and then tries to pull without specifying remote/branch","user":{"login":"silasdavis","id":99715,"avatar_url":"https://avatars.githubusercontent.com/u/99715?v=3","gravatar_id":"","url":"https://api.github.com/users/silasdavis","html_url":"https://github.com/silasdavis","followers_url":"https://api.github.com/users/silasdavis/followers","following_url":"https://api.github.com/users/silasdavis/following{/other_user}","gists_url":"https://api.github.com/users/silasdavis/gists{/gist_id}","starred_url":"https://api.github.com/users/silasdavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silasdavis/subscriptions","organizations_url":"https://api.github.com/users/silasdavis/orgs","repos_url":"https://api.github.com/users/silasdavis/repos","events_url":"https://api.github.com/users/silasdavis/events{/privacy}","received_events_url":"https://api.github.com/users/silasdavis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-03-06T16:19:33Z","updated_at":"2015-08-14T21:25:26Z","closed_at":null,"body":"If you have previously used `godep restore` your git repositories will be in a detached head state, but godep tries to run git pull --ff-only, but this fails with \r\n\r\n```\r\nFrom github.com:Foo/Bar\r\n   19a3d36..c056ec2  master     -> origin/master\r\nYou are not currently on a branch. Please specify which\r\nbranch you want to merge with. See git-pull(1) for details.\r\n\r\n    git pull <remote> <branch>\r\n```\r\n\r\nFurthermore if you try and work with\r\n```bash\r\nexport GOPATH=$(godep path)\r\ngodep restore\r\n```\r\n\r\nNothing really works because the files under _workspace directory are not in their original git repositories so when godep tries:\r\n\r\n```bash\r\ngit checkout 19a3d368eacde07ff631578ca7de3ec1d5e3a2cd\r\nfatal: reference is not a tree: 19a3d368eacde07ff631578ca7de3ec1d5e3a2cd\r\n```\r\n\r\nThese seem pretty fundamental so I don't really understand how this hasn't come up before - perhaps I'm missing something, but I don't see how restore can work unless you have synchronised your repositories manually..."},"comment":{"url":"https://api.github.com/repos/tools/godep/issues/comments/131242222","html_url":"https://github.com/tools/godep/issues/60#issuecomment-131242222","issue_url":"https://api.github.com/repos/tools/godep/issues/60","id":131242222,"user":{"login":"freeformz","id":103,"avatar_url":"https://avatars.githubusercontent.com/u/103?v=3","gravatar_id":"","url":"https://api.github.com/users/freeformz","html_url":"https://github.com/freeformz","followers_url":"https://api.github.com/users/freeformz/followers","following_url":"https://api.github.com/users/freeformz/following{/other_user}","gists_url":"https://api.github.com/users/freeformz/gists{/gist_id}","starred_url":"https://api.github.com/users/freeformz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeformz/subscriptions","organizations_url":"https://api.github.com/users/freeformz/orgs","repos_url":"https://api.github.com/users/freeformz/repos","events_url":"https://api.github.com/users/freeformz/events{/privacy}","received_events_url":"https://api.github.com/users/freeformz/received_events","type":"User","site_admin":false},"created_at":"2015-08-14T21:25:25Z","updated_at":"2015-08-14T21:25:25Z","body":"Travis shouldn't do that as that's an implementation detail of godep and may break in the future."}}