def get_git_branch_name(ref_name):
 branch_ref_prefix = u'refs/heads/'
 if ref_name.startswith(branch_ref_prefix):
  return ref_name[len(branch_ref_prefix):]

def get_git_branch_name ( ref_name ) : branch_ref_prefix = u'refs/heads/' if ref_name . startswith ( branch_ref_prefix ) : return ref_name [ len ( branch_ref_prefix ) : ]
returns the branch name corresponding to the specified ref name .