code: func PlainInit(path string, isBare bool) (*Repository, error) {
  	var wt, dot billy.Filesystem
  
  	if isBare {
  		dot = osfs.New(path)
  	} else {
  		wt = osfs.New(path)
  		dot, _ = wt.Chroot(GitDirName)
  	}
  
  	s := filesystem.NewStorage(dot, cache.NewObjectLRUDefault())
  
  	return Init(s, wt)
  }
docs: // PlainInit create an empty git repository at the given path. isBare defines
  // if the repository will have worktree (non-bare) or not (bare), if the path
  // is not empty ErrRepositoryAlreadyExists is returned.