def has_remote(git, ref):
    return has_ref(git, "refs/remotes/{}".format(ref))
Check middleware interface and prepare it to iterate.
dataset/ETHPy150Open dimagi/commcare-hq/scripts/rebuildstaging.py/has_remote--crossover with--dataset/ETHPy150Open falconry/falcon/falcon/api_helpers.py/prepare_middleware