diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2015-11-10 21:07:29 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2015-11-10 21:07:29 +0100 |
commit | 49f40d9f410a6fc0a9c89ba228d16cd570ec711a (patch) | |
tree | 8d7e5cdab936131e7520f5462739857adf1eca8e /remote.go | |
parent | b7cf99f3e80e482e743448fb633612cd02090a7c (diff) | |
download | go-git-49f40d9f410a6fc0a9c89ba228d16cd570ec711a.tar.gz |
common: GitUploadPackRequest Want, Have methods
Diffstat (limited to 'remote.go')
-rw-r--r-- | remote.go | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -89,9 +89,10 @@ func (r *Remote) FetchDefaultBranch() (io.ReadCloser, error) { return nil, err } - return r.Fetch(&common.GitUploadPackRequest{ - Want: []core.Hash{ref}, - }) + req := &common.GitUploadPackRequest{} + req.Want(ref) + + return r.Fetch(req) } // Ref returns the Hash pointing the given refName |