def METHOD_NAME(hash: str) -> bool:
    """
    Returns True if the hash exists in the repo
    """
    sh = Sh()
    cmd = f"git rev-parse -q {hash}"
    proc = sh.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, check=False)
    print(proc.stdout)
    if proc.returncode == 0:
        return True
    if "unknown revision or path not in the working tree" in proc.stdout:
        return False
    raise RuntimeError(f"Unexpected failure when running: {cmd}")