Function git_repodir_for_repo

Source
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.