def fq_remote_to_short_local(ref):
    # convert to e.g. 'origin/mywork'
    ref = fq_to_short(ref)

    slash_pos = ref.find('/')

    if slash_pos == -1:
        raise Error("ref can't be converted to short local: {}".format(ref))

    # disregard before and including the first slash
    return ref[slash_pos + 1:]
By default `None` is not a valid input.
dataset/ETHPy150Open bloomberg/phabricator-tools/py/phl/phlgitu_ref.py/fq_remote_to_short_local--crossover with--dataset/ETHPy150Open tomchristie/django-rest-framework/tests/test_fields.py/TestEmpty.test_disallow_null