aboutsummaryrefslogtreecommitdiffstats
path: root/clients/http
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2015-11-10 21:07:29 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2015-11-10 21:07:29 +0100
commit49f40d9f410a6fc0a9c89ba228d16cd570ec711a (patch)
tree8d7e5cdab936131e7520f5462739857adf1eca8e /clients/http
parentb7cf99f3e80e482e743448fb633612cd02090a7c (diff)
downloadgo-git-49f40d9f410a6fc0a9c89ba228d16cd570ec711a.tar.gz
common: GitUploadPackRequest Want, Have methods
Diffstat (limited to 'clients/http')
-rw-r--r--clients/http/git_upload_pack_test.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/clients/http/git_upload_pack_test.go b/clients/http/git_upload_pack_test.go
index 02ed37c..f9ec424 100644
--- a/clients/http/git_upload_pack_test.go
+++ b/clients/http/git_upload_pack_test.go
@@ -58,12 +58,10 @@ func (s *SuiteRemote) TestFetch(c *C) {
r := NewGitUploadPackService()
c.Assert(r.Connect(RepositoryFixture), IsNil)
- reader, err := r.Fetch(&common.GitUploadPackRequest{
- Want: []core.Hash{
- core.NewHash("6ecf0ef2c2dffb796033e5a02219af86ec6584e5"),
- },
- })
+ req := &common.GitUploadPackRequest{}
+ req.Want(core.NewHash("6ecf0ef2c2dffb796033e5a02219af86ec6584e5"))
+ reader, err := r.Fetch(req)
c.Assert(err, IsNil)
b, err := ioutil.ReadAll(reader)