pub fn repo_state_dir(state: &Path, repo: &Git) -> Result<PathBuf, GitError>
A repository’s directory under the state dir, keyed by its canonical common git directory (shared by all of its worktrees).