code: func (o *PullOptions) Validate() error {
  	if o.RemoteName == "" {
  		o.RemoteName = DefaultRemoteName
  	}
  
  	if o.ReferenceName == "" {
  		o.ReferenceName = plumbing.HEAD
  	}
  
  	return nil
  }
docs: // Validate validates the fields and sets the default values.