pub fn get_repo_root(path: Option<&Path>) -> Result<PathBuf>
Get the root directory of the git repository.