)]}'
{
  "commit": "56a5db65b3e6c0c838b29071323332439dbbc08f",
  "tree": "9483725034365153165e8b97e16110c91e49f286",
  "parents": [
    "f9cc863220814d70440766c3ac80c61bc69cae4f"
  ],
  "author": {
    "name": "Matthias Sohn",
    "email": "matthias.sohn@sap.com",
    "time": "Tue Sep 24 10:51:22 2024 +0200"
  },
  "committer": {
    "name": "Matthias Sohn",
    "email": "matthias.sohn@sap.com",
    "time": "Wed Sep 25 16:43:52 2024 +0200"
  },
  "message": "AdvertisedRequestValidator: fix WantNotValidException caused by race\n\nFetch with protocol V2 failed under the following conditions\n- fetch uses bidirectional protocol (git, ssh) which uses a shortcut\n  to determine invalid wants\n- not all wants are advertised\n- race condition: wanted ref is updated during fetch by another thread\n  after the thread serving upload-pack determined wants and before it\n  checks not advertised wants\n\nFix this by calling\n`new ReachableCommitRequestValidator().checkWants(up, wants)`\ninstead of throwing WantNotValidException in [1]\nif this race happened in the same way like it\u0027s done for unidirectional\nprotocols (http) [2].\n\n[1] https://github.com/eclipse-jgit/jgit/blob/stable-6.10/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java#L2002\n[2] https://github.com/eclipse-jgit/jgit/blob/stable-6.10/org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java#L2000\n\nBug: jgit-48\nChange-Id: I32f28502923815dc49781aab5d810c9afbe7e7e6\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "3264f556fa2ec87f174673ea88036b1023083128",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java",
      "new_id": "8b97ee10caeef94ff67e30b41433ec0c213d7266",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit/src/org/eclipse/jgit/transport/UploadPack.java"
    }
  ]
}
