Skip to main content

ensure_git_clean

Function ensure_git_clean 

Source
pub fn ensure_git_clean(repo_root: &Path) -> Result<()>
Expand description

Fail fast if the working tree is dirty.

Error message is pinned by the CLI snapshot tests: "git working tree is not clean; commit/stash changes or use --allow-dirty".