diff options
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 |