pub fn canonicalize_git_repo_path(path: &Path) -> Result<PathBuf>
Expand description
Canonicalizes the given path
except for the last ".git"
component.
The last path component matters when opening a Git repo without core.bare
config. This config is usually set, but the “repo” tool will set up such
repositories and symlinks. Opening such repo with fully-canonicalized path
would turn a colocated Git repo into a bare repo.