diff options
Diffstat (limited to 'clients/http/git_upload_pack.go')
-rw-r--r-- | clients/http/git_upload_pack.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/http/git_upload_pack.go b/clients/http/git_upload_pack.go index bc99fd8..6960be1 100644 --- a/clients/http/git_upload_pack.go +++ b/clients/http/git_upload_pack.go @@ -38,8 +38,8 @@ func (s *GitUploadPackService) Info() (*common.GitUploadPackInfo, error) { defer res.Body.Close() - dec := pktline.NewDecoder(res.Body) - return common.NewGitUploadPackInfo(dec) + i := common.NewGitUploadPackInfo() + return i, i.Decode(pktline.NewDecoder(res.Body)) } func (s *GitUploadPackService) Fetch(r *common.GitUploadPackRequest) (io.ReadCloser, error) { |