tomodrgn.utils.check_git_revision_hash#

check_git_revision_hash(repo_path: str) str[source]#

Get the git revision hash of a git repository. Uses subprocess call to git and parses output.

Parameters:

repo_path – Path to repository for which to check revision hash.

Returns:

Git revision hash of HEAD in repo_path.