pub fn convert_to_bare(repo: Repository) -> Result<Repository>Expand description
Convert a standard git repository into the worktrees layout.
Performs the following steps:
- Sets
core.bare = truein git config - Renames
.gitto.bare - Writes a
.gitlink file containinggitdir: ./.bare - Configures
origin’s fetch refspec to mirror all branches
Returns the re-opened bare repository.