Skip to main content

ensure_git_repo

Function ensure_git_repo 

Source
pub fn ensure_git_repo(dir: &str) -> Result<()>
Expand description

Ensure the provided directory is inside a git work tree.

ยงErrors

Returns an error when the directory is not part of a git repository.