diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-15 21:43:33 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-15 21:43:33 +0200 |
commit | ed2e3b299e03e4bfd4c37bf5232e9fde05c0600d (patch) | |
tree | a4ecca997e4528b643758ddaa1dedfa4546369cd /remote.go | |
parent | 4c6e65190f48f0a7558718d239ffb23ee59580ac (diff) | |
download | go-git-ed2e3b299e03e4bfd4c37bf5232e9fde05c0600d.tar.gz |
Repository.Pull, PoC
Diffstat (limited to 'remote.go')
-rw-r--r-- | remote.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -80,6 +80,10 @@ func (r *Remote) Capabilities() *common.Capabilities { // Fetch returns a reader using the request func (r *Remote) Fetch(s core.ObjectStorage, o *RemoteFetchOptions) (err error) { + if err := o.Validate(); err != nil { + return err + } + req := &common.GitUploadPackRequest{} req.Depth = o.Depth |