)]}'
{
  "commit": "efec324fdd1f5c880905d3e1e3b785c45d7c74bd",
  "tree": "7ddb1206a3028b4d6e07d8ccd02b34555ebd70e4",
  "parents": [
    "ebdc087dc99d68bb340c282b2ba5f722def28d19"
  ],
  "author": {
    "name": "Kristofer Karlsson",
    "email": "krka@spotify.com",
    "time": "Mon Nov 02 15:47:09 2026 +0000"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Mon Nov 02 16:09:10 2026 -0800"
  },
  "message": "rev-list: ignore replacements in the connectivity check\n\nThe connectivity check follows replace refs, but other operations\nthat depend on the repository being complete, such as fsck, prune,\npack-objects and upload-pack, do not. They were taught to ignore\nreplacements in dae556bdb1 (environment: add global variable to\ndisable replacement, 2009-01-23), as they must work with the\noriginal objects, and check_connected() came later without doing\nthe same.\n\nTeach the connectivity check to ignore replacements as well, so\nthat it verifies the same objects that the commands relying on its\nresult will read. This is not a problem seen in practice, but the\ntwo can disagree. If a replace ref names an object that is not yet\npresent locally, the check follows the replacement instead of that\nobject when it arrives, and accepts an incoming pack that lacks\nobjects below it. fsck and repack then fail. Such a replace ref can\nbe the result of fetching refs/replace/* without the branch that\ncontains the replaced commit, which fsck does not complain about,\nbut it still takes a sender that sends an incomplete pack.\n\ncheck_connected() passes --connectivity-check to its rev-list\nsubprocess, so make rev-list disable replacements when that option\nis given, for both the full and the incremental check. Also drop\nOBJECT_INFO_LOOKUP_REPLACE from the object reads in tree-verify.c,\nused by the incremental check, to match. Disabling replacements\nalready overrides the flag, but it suggests the opposite intent.\n\nThe t5413 test that expected the check to accept a commit whose\noriginal tree is incomplete because a replacement is complete now\nexpects a rejection, and the test that disabled replacements\nexplicitly to get one is redundant.\n\nSigned-off-by: Kristofer Karlsson \u003ckrka@spotify.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "285fb3809ff8f46281fe72672b467108f69f3be9",
      "old_mode": 33188,
      "old_path": "Documentation/rev-list-options.adoc",
      "new_id": "b2c0d394abaab52e4d5b4287b0ab8111fcef2667",
      "new_mode": 33188,
      "new_path": "Documentation/rev-list-options.adoc"
    },
    {
      "type": "modify",
      "old_id": "071a0e3cb5ff5eb2416dcfe097839a6050ef11e5",
      "old_mode": 33188,
      "old_path": "builtin/rev-list.c",
      "new_id": "bf66d2c9aef569ab7a7ff8a194e7069fda06d05c",
      "new_mode": 33188,
      "new_path": "builtin/rev-list.c"
    },
    {
      "type": "modify",
      "old_id": "60edf99b63b363850b1295348d33dc68d30071d3",
      "old_mode": 33261,
      "old_path": "t/t5413-connectivity-check.sh",
      "new_id": "341638a4334de005008e9310c295eeb98591d23f",
      "new_mode": 33261,
      "new_path": "t/t5413-connectivity-check.sh"
    },
    {
      "type": "modify",
      "old_id": "25db76d30ba58e79099b6194433e1efa09d31b60",
      "old_mode": 33188,
      "old_path": "tree-verify.c",
      "new_id": "c22823515024fbf64ac38ae6bc147c65b3a72444",
      "new_mode": 33188,
      "new_path": "tree-verify.c"
    }
  ]
}
