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