pub fn repo_root() -> Result<PathBuf>
Get the root directory of the current git repository.
Returns an error if not inside a git repository.