def get_branch_name(ref_name):
    branch_ref_prefix = 'refs/heads/'

    if ref_name.startswith(branch_ref_prefix):
        return ref_name[len(branch_ref_prefix):]
IMStatus._set_status: installs correct functions for linux/nix.
dataset/ETHPy150Open reviewboard/rbtools/rbtools/hooks/git.py/get_branch_name--crossover with--dataset/ETHPy150Open xtrementl/focus/tests/unit/plugin/modules/test_im.py/IMStatusCase.testRegular___set_status