def has_local(git, branch):
    return has_ref(git, "refs/heads/{}".format(branch))
Return true if the named local branch exists
dataset/ETHPy150Open dimagi/commcare-hq/scripts/rebuildstaging.py/has_local