aboutsummaryrefslogtreecommitdiffstats
path: root/clients/http/git_upload_pack.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2015-11-01 01:38:35 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2015-11-01 01:38:35 +0100
commit6badbeb07eb5cc0b1be201f5d8cc8193e30bcf54 (patch)
tree73f18bf34ef70fd747c90a70fe1835dd39094af2 /clients/http/git_upload_pack.go
parentc6349552c1c54ea114b92ae23fc840f68f6551f4 (diff)
downloadgo-git-6badbeb07eb5cc0b1be201f5d8cc8193e30bcf54.tar.gz
clients: capabilities improvement
Diffstat (limited to 'clients/http/git_upload_pack.go')
-rw-r--r--clients/http/git_upload_pack.go4
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) {