def verify_revision(rev):
    status = os.system('git rev-parse --verify --no-revs %s' % (
        rev
    ))
    return status == 0
Verifies that a revision is valid in the current working directory,
dataset/ETHPy150Open georgebrock/git-browse/gitbrowse/git.py/verify_revision