code: func (o *FetchOptions) Validate() error {
  	if o.RemoteName == "" {
  		o.RemoteName = DefaultRemoteName
  	}
  
  	if o.Tags == InvalidTagMode {
  		o.Tags = TagFollowing
  	}
  
  	for _, r := range o.RefSpecs {
  		if err := r.Validate(); err != nil {
  			return err
  		}
  	}
  
  	return nil
  }
docs: // Validate validates the fields and sets the default values.