)]}'
{
  "commit": "c6103ecdd81647c7217411907a15e7fa47b3d1cb",
  "tree": "0bdc55d77c126922b114794f3b7a5fcad2dc2621",
  "parents": [
    "282a8a38304f308b5d6e7ad2fea9a814bb6a2979"
  ],
  "author": {
    "name": "David Ostrovsky",
    "email": "david@ostrovsky.org",
    "time": "Fri Nov 13 10:06:15 2026 +0100"
  },
  "committer": {
    "name": "David Ostrovsky",
    "email": "david@ostrovsky.org",
    "time": "Sat Nov 14 10:54:13 2026 +0100"
  },
  "message": "RefUpdate: reject a symref target that is not a valid ref name\n\nCloneCommand.findBranchToCheckout takes the remote-advertised HEAD\ntarget and hands it to RefUpdate.link(), which wrote it into the symref\nverbatim after only checking that it starts with refs/. A hostile remote\nadvertising a HEAD symref target that contains a control character\n(e.g. a newline) could therefore write forged content into .git/HEAD.\n\nValidate the target with Repository.isValidRefName() in link() and\nreject an invalid one, so a remote-controlled symref target cannot\ninject into the ref file.\n\nAdd a test that link() rejects a target with a control character.\n\nChange-Id: I9a7048d7d9127e441e63b09f4eea33176c1a4d70\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4ad30533001ddbde2dc7f0f988c54e3cfe7eef38",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefUpdateTest.java",
      "new_id": "e23867e100906cdf8a305b7462722d6556b5c891",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/RefUpdateTest.java"
    },
    {
      "type": "modify",
      "old_id": "d113243bea926d7c615f451d645e68d97c0b56f2",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit/src/org/eclipse/jgit/lib/RefUpdate.java",
      "new_id": "a9be7a7068d2a00f2eff209856a6e43e7a414a76",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit/src/org/eclipse/jgit/lib/RefUpdate.java"
    }
  ]
}
