def is_under_remote(ref, remote):
    return ref.startswith('refs/remotes/' + remote + '/')
Return True if a Git reference is from a particular remote, else False.
dataset/ETHPy150Open bloomberg/phabricator-tools/py/phl/phlgitu_ref.py/is_under_remote