pub fn git_repodir_for_repo(repo: Repository) -> Result<Repository, Error>
Expand description
If the repository represents a worktree, peels it to find the real .git
directory, and returns
a repository against the real .git
directory.
pub fn git_repodir_for_repo(repo: Repository) -> Result<Repository, Error>
If the repository represents a worktree, peels it to find the real .git
directory, and returns
a repository against the real .git
directory.