Beispiel #1
0
def git_does_commit_exist_locally(repo: Repo, sha: str) -> bool:
    try:
        repo.rev_parse(sha)
        return True
    except ValueError:
        return False