def get_tag(repo, sha):
    try:
        tag = repo[unicode(sha)]
    except __HOLE__:
        raise NotFound("tag not found")
    if tag.type != GIT_OBJ_TAG:
        raise NotFound("object not a tag")
    return tag
dataset/ETHPy150Open hulu/restfulgit/restfulgit/plumbing/retrieval.py/get_tag