)]}'
{
  "commit": "80871f356e88d23cc32cd852fd4a4548e861f47c",
  "tree": "20b6dfb47515d3ce2c0a5c10ae4d387639ecc727",
  "parents": [
    "5361983c075154725be47b65cca9a2421789e410"
  ],
  "author": {
    "name": "Runxi Yu",
    "email": "me@runxiyu.org",
    "time": "Mon Mar 30 13:18:20 2026 +0200"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Mon Mar 30 12:52:40 2026 -0700"
  },
  "message": "t5516: test updateInstead with worktree and unborn bare HEAD\n\nThis is a regression test which should presently fail, to demonstrate\nthe behavior I encountered that looks like a bug.\n\nWhen a bare repository has a worktree checked out on a separate branch,\nreceive.denyCurrentBranch\u003dupdateInstead should allow a push to that\nbranch and update the linked worktree, as long as the linked worktree is\nclean.\n\nBut, if the bare repository\u0027s own HEAD is repointed to an unborn branch,\nthe push is rejected with \"Working directory has staged changes\", even\nthough the linked worktree itself is clean.\n\nThis test is essentially a minimal working example of what I encountered\nwhile actually using Git; it might not be the optimal way to demonstrate\nthe underlying bug. I suspect builtin/receive-pack.c is using the bare\nrepository\u0027s HEAD even when comparing it to the worktree\u0027s index.\n\nSigned-off-by: Runxi Yu \u003cme@runxiyu.org\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "29e2f17608156127bc672374b6667d1bc010f353",
      "old_mode": 33261,
      "old_path": "t/t5516-fetch-push.sh",
      "new_id": "f44250c38f2c821c380583402232718b370fb4b8",
      "new_mode": 33261,
      "new_path": "t/t5516-fetch-push.sh"
    }
  ]
}
