)]}'
{
  "commit": "8151f4fe7e4bf36f2656ae849a4ffaf386708178",
  "tree": "d5135a2fa9927c81158639a258a1cffcc375f3ff",
  "parents": [
    "b310755ecaf4459eddd4f602b3cb02e793c01177"
  ],
  "author": {
    "name": "Pablo Sabater",
    "email": "pabloosabaterr@gmail.com",
    "time": "Mon Mar 30 13:18:22 2026 +0200"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Mon Mar 30 12:52:41 2026 -0700"
  },
  "message": "receive-pack: use worktree HEAD for updateInstead\n\nWhen a bare repo has linked worktrees, and its HEAD points to an unborn branch,\npushing to a wt branch with updateInstead fails and rejects the push, even if\nthe wt is clean. This happens because HEAD is checked only for the bare repo\ncontext, instead of the wt.\n\nRemove head_has_history and check for worktree-\u003ehead_oid which does\nhave the correct HEAD of the wt.\n\nUpdate the test added by Runxi\u0027s patch to expect success.\n\nSigned-off-by: Pablo Sabater \u003cpabloosabaterr@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e34edff406959a9b72d3c2eae30c6c6849c31c49",
      "old_mode": 33188,
      "old_path": "builtin/receive-pack.c",
      "new_id": "26a3a0bcd308ea6809201abb7c7e29337ba410a2",
      "new_mode": 33188,
      "new_path": "builtin/receive-pack.c"
    },
    {
      "type": "modify",
      "old_id": "c40f2790d80f00b857701910c73a19e0cc115626",
      "old_mode": 33261,
      "old_path": "t/t5516-fetch-push.sh",
      "new_id": "117cfa051f33e25a8e077802e5eccec56765d028",
      "new_mode": 33261,
      "new_path": "t/t5516-fetch-push.sh"
    }
  ]
}
