public static void logDebugAllRefsFiles(GitRepositoryFiles gitRepositoryFiles) {
    File refsHeadsFile = gitRepositoryFiles.getRefsHeadsFile();
    File refsRemotesFile = gitRepositoryFiles.getRefsRemotesFile();
    File refsTagsFile = gitRepositoryFiles.getRefsTagsFile();

    LOG.debug("Logging .git/refs files. " +
              ".git/refs/heads " + (refsHeadsFile.exists() ? "exists" : "doesn't exist") +
              ".git/refs/remotes " + (refsRemotesFile.exists() ? "exists" : "doesn't exist") +
              ".git/refs/tags " + (refsTagsFile.exists() ? "exists" : "doesn't exist"));
    if (LOG.isDebugEnabled()) {
      logDebugAllFilesIn(refsHeadsFile);
      logDebugAllFilesIn(refsRemotesFile);
      logDebugAllFilesIn(refsTagsFile);
      File packedRefsPath = gitRepositoryFiles.getPackedRefsPath();
      if (packedRefsPath.exists()) {
        try {
          LOG.debug("packed-refs file content: [\n" + FileUtil.loadFile(packedRefsPath) + "\n]");
        }
        catch (IOException e) {
          LOG.debug("Couldn't load the file " + packedRefsPath, e);
        }
      }
      else {
        LOG.debug("The file " + packedRefsPath + " doesn't exist.");
      }
    }
  }
public static void logDebugAllRefsFiles(GitRepositoryFiles gitRepositoryFiles)