code: public static String sanitizeRefName(String refName) {
                  if (refName.startsWith(REF_HEAD_PREFIX)) {
                          refName = refName.substring(REF_HEAD_PREFIX.length());
                  }
  
                  if (refName.startsWith(REF_TAG_PREFIX)) {
                          refName = refName.substring(REF_TAG_PREFIX.length());
                  }
  
                  return refName;
          }
docs: Strips the 'ref/someprefix/' prefix from a reference name if needed
  
  @param refName The reference name to sanitize
  @return The natural branch name without prefix