Skip to main content

current_repo_root

Function current_repo_root 

Source
pub fn current_repo_root() -> Result<PathBuf>
Expand description

Get the repo root bound to the current task, falling back to the current directory.

ยงErrors

Returns an error when the current directory cannot be resolved to a Git repository.