Skip to content

clean_source_revision

junjo.evaluation.clean_source_revision

Kind: Function

SDK version: 0.67.0

Documentation channel: Stable release

clean_source_revision(repository: Path | None = None) -> str

View source

Return HEAD only when the complete containing Git worktree is clean.

Name Type Description Default
repository Path | None File or directory inside the application worktree.
Defaults to the caller’s current working directory.
None
  • str: The clean 40- or 64-character lowercase Git object ID.
Exception Description
DirtySourceTreeError If Git inspection fails or tracked/untracked
changes make the candidate revision untruthful.