code: func PlainOpenWithOptions(path string, o *PlainOpenOptions) (*Repository, error) {
  	dot, wt, err := dotGitToOSFilesystems(path, o.DetectDotGit)
  	if err != nil {
  		return nil, err
  	}
  
  	if _, err := dot.Stat(""); err != nil {
  		if os.IsNotExist(err) {
  			return nil, ErrRepositoryNotExists
  		}
  
  		return nil, err
  	}
  
  	s := filesystem.NewStorage(dot, cache.NewObjectLRUDefault())
  
  	return Open(s, wt)
  }
docs: // PlainOpenWithOptions opens a git repository from the given path with specific
  // options. See PlainOpen for more info.