aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-08-15 21:43:33 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-08-15 21:43:33 +0200
commited2e3b299e03e4bfd4c37bf5232e9fde05c0600d (patch)
treea4ecca997e4528b643758ddaa1dedfa4546369cd /remote.go
parent4c6e65190f48f0a7558718d239ffb23ee59580ac (diff)
downloadgo-git-ed2e3b299e03e4bfd4c37bf5232e9fde05c0600d.tar.gz
Repository.Pull, PoC
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/remote.go b/remote.go
index ce74af4..7e25ef7 100644
--- a/remote.go
+++ b/remote.go
@@ -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