pub fn git_project_root() -> Result<PathBuf>
If the current directory is not inside a git repository.