{"action":"created","issue":{"url":"https://api.github.com/repos/src-d/go-git/issues/785","repository_url":"https://api.github.com/repos/src-d/go-git","labels_url":"https://api.github.com/repos/src-d/go-git/issues/785/labels{/name}","comments_url":"https://api.github.com/repos/src-d/go-git/issues/785/comments","events_url":"https://api.github.com/repos/src-d/go-git/issues/785/events","html_url":"https://github.com/src-d/go-git/issues/785","id":305990102,"number":785,"title":"Clone fails with \"reference not found\" error","user":{"login":"dave","id":925351,"avatar_url":"https://avatars1.githubusercontent.com/u/925351?v=4","gravatar_id":"","url":"https://api.github.com/users/dave","html_url":"https://github.com/dave","followers_url":"https://api.github.com/users/dave/followers","following_url":"https://api.github.com/users/dave/following{/other_user}","gists_url":"https://api.github.com/users/dave/gists{/gist_id}","starred_url":"https://api.github.com/users/dave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave/subscriptions","organizations_url":"https://api.github.com/users/dave/orgs","repos_url":"https://api.github.com/users/dave/repos","events_url":"https://api.github.com/users/dave/events{/privacy}","received_events_url":"https://api.github.com/users/dave/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ajnavarro","id":1196465,"avatar_url":"https://avatars3.githubusercontent.com/u/1196465?v=4","gravatar_id":"","url":"https://api.github.com/users/ajnavarro","html_url":"https://github.com/ajnavarro","followers_url":"https://api.github.com/users/ajnavarro/followers","following_url":"https://api.github.com/users/ajnavarro/following{/other_user}","gists_url":"https://api.github.com/users/ajnavarro/gists{/gist_id}","starred_url":"https://api.github.com/users/ajnavarro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajnavarro/subscriptions","organizations_url":"https://api.github.com/users/ajnavarro/orgs","repos_url":"https://api.github.com/users/ajnavarro/repos","events_url":"https://api.github.com/users/ajnavarro/events{/privacy}","received_events_url":"https://api.github.com/users/ajnavarro/received_events","type":"User","site_admin":false},"assignees":[{"login":"ajnavarro","id":1196465,"avatar_url":"https://avatars3.githubusercontent.com/u/1196465?v=4","gravatar_id":"","url":"https://api.github.com/users/ajnavarro","html_url":"https://github.com/ajnavarro","followers_url":"https://api.github.com/users/ajnavarro/followers","following_url":"https://api.github.com/users/ajnavarro/following{/other_user}","gists_url":"https://api.github.com/users/ajnavarro/gists{/gist_id}","starred_url":"https://api.github.com/users/ajnavarro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajnavarro/subscriptions","organizations_url":"https://api.github.com/users/ajnavarro/orgs","repos_url":"https://api.github.com/users/ajnavarro/repos","events_url":"https://api.github.com/users/ajnavarro/events{/privacy}","received_events_url":"https://api.github.com/users/ajnavarro/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2018-03-16T16:16:27Z","updated_at":"2018-03-25T21:14:43Z","closed_at":null,"author_association":"NONE","body":"Cloning the repo `https://gopkg.in/src-d/go-billy.v4` works in command line `git`:\r\n\r\n```\r\n$ git clone https://gopkg.in/src-d/go-billy.v4\r\nCloning into 'go-billy.v4'...\r\nremote: Counting objects: 786, done.\r\nremote: Total 786 (delta 0), reused 0 (delta 0), pack-reused 786\r\nReceiving objects: 100% (786/786), 165.29 KiB | 137.00 KiB/s, done.\r\nResolving deltas: 100% (395/395), done.\r\n```\r\n\r\n... but fails with `go-git`:\r\n\r\n```go\r\nfunc TestClone2(t *testing.T) {\r\n\tfs := memfs.New()\r\n\r\n\tctx := context.Background()\r\n\r\n\tstore, err := filesystem.NewStorage(memfs.New())\r\n\tif err != nil {\r\n\t\tt.Fatal(err.Error())\r\n\t}\r\n\r\n\t_, err = git.CloneContext(ctx, store, fs, &git.CloneOptions{\r\n\t\tURL:               \"https://gopkg.in/src-d/go-billy.v4\",\r\n\t\tSingleBranch:      true,\r\n\t\tDepth:             1,\r\n\t\tRecurseSubmodules: git.DefaultSubmoduleRecursionDepth,\r\n\t\tProgress:          os.Stdout,\r\n\t})\r\n\tif err != nil {\r\n\t\tt.Fatal(err.Error())\r\n\t}\r\n}\r\n```\r\n\r\nOutput:\r\n\r\n```\r\nCounting objects: 224, done.\r\nCompressing objects: 100% (161/161), done.\r\nTotal 224 (delta 95), reused 156 (delta 55), pack-reused 0\r\n\tget_get_test.go:73: reference not found\r\n```"},"comment":{"url":"https://api.github.com/repos/src-d/go-git/issues/comments/376004100","html_url":"https://github.com/src-d/go-git/issues/785#issuecomment-376004100","issue_url":"https://api.github.com/repos/src-d/go-git/issues/785","id":376004100,"user":{"login":"dave","id":925351,"avatar_url":"https://avatars1.githubusercontent.com/u/925351?v=4","gravatar_id":"","url":"https://api.github.com/users/dave","html_url":"https://github.com/dave","followers_url":"https://api.github.com/users/dave/followers","following_url":"https://api.github.com/users/dave/following{/other_user}","gists_url":"https://api.github.com/users/dave/gists{/gist_id}","starred_url":"https://api.github.com/users/dave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave/subscriptions","organizations_url":"https://api.github.com/users/dave/orgs","repos_url":"https://api.github.com/users/dave/repos","events_url":"https://api.github.com/users/dave/events{/privacy}","received_events_url":"https://api.github.com/users/dave/received_events","type":"User","site_admin":false},"created_at":"2018-03-25T21:14:43Z","updated_at":"2018-03-25T21:14:43Z","author_association":"NONE","body":"Any movement on this? Here's another one that doesn't work (same error):\r\n\r\nhttps://code.googlesource.com/google-api-go-client\r\n\r\n```\r\n$ curl https://code.googlesource.com/google-api-go-client/info/refs\\?service\\=git-upload-pack\r\n001e# service=git-upload-pack\r\n000000f324928b980e6919be4c72647aacd53ebcbb8c4bab HEAD include-tag multi_ack_detailed multi_ack ofs-delta side-band side-band-64k thin-pack no-progress shallow no-done allow-tip-sha1-in-want allow-reachable-sha1-in-want agent=JGit/4-google filter\r\n004486bc30d7a35e40b2c4aa97fa80d98a8c9586ada8 refs/changes/00/1500/1\r\n00459dc78a731af9c6d4b61b3c545bc76e9039e41c07 refs/changes/00/1500/10\r\n0045c9f3065a1afeff7284af317195125a1a82748980 refs/changes/00/1500/11\r\n...\r\n```"}}
{"actor":{"display_login":"dave"}}