aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
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