)]}'
{
  "commit": "9a035a3f0114bc46a0d85140d1faf0b0f007f545",
  "tree": "bdbe7c6931ca4b1974d2d8f3392f3fa829b08528",
  "parents": [
    "88bf3a46cd1c0571c5994d21e0e936e2028f17da"
  ],
  "author": {
    "name": "Antonio Barone",
    "email": "syntonyze@gmail.com",
    "time": "Mon Jul 12 16:47:13 2021 +0200"
  },
  "committer": {
    "name": "Antonio Barone",
    "email": "syntonyze@gmail.com",
    "time": "Mon Jul 12 17:16:58 2021 +0200"
  },
  "message": "Prevent misleading Invalid id\u0027 error in logs\n\nUpon git ref updates, pull-replication is fired so that remotes are\nnotified to perform a new fetch operation.\n\nSmall commits however (for configurable values of \"small\") can already\nbe sent as part of the payload in order to save one round-trip and be\npassed directly instead.\n\nFor this reason, for each updated ref, an attempt is made to extract the\ncommit from the update ref.\n\nUpon failure however, a non-useful, error message spamming the logs, as\nsuch:\n\n```\norg.eclipse.jgit.errors.InvalidObjectIdException: Invalid id\n```\n\nWithout giving any detail on what ref or what objectId actually caused\nthe exception, this entry is quite useless.\n\nThis was the case for example, in a multi-site installation, where the\n\n```refs/multi-site/version```\n\nref was failing to be extracted (since the ref points to a blob rather\nthan a commit).\n\nin fact, in a multi-site deployment this ref should be added to the\n```replication.excludeRefs``` section.\n\nCatch the InvalidObjectIdException and provide contextual information on\nwhich ref, exactly, failed.\n\nBug: 14741\nChange-Id: Ib0ed6f4606c72738de9296be353c4d88a2f3a88b\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "cdba0126654b5afd8d10180b855e697d58edc39a",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/replication/pull/ReplicationQueue.java",
      "new_id": "3ded8eb23c77b1a979e45de418e0c36f2786c16c",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/replication/pull/ReplicationQueue.java"
    },
    {
      "type": "modify",
      "old_id": "126cd1be1f03d3be65dc3704259cde8d845e69f6",
      "old_mode": 33188,
      "old_path": "src/main/resources/Documentation/config.md",
      "new_id": "d4c5abff8932830815f4c31cbd3fb40077a65055",
      "new_mode": 33188,
      "new_path": "src/main/resources/Documentation/config.md"
    }
  ]
}
