)]}'
{
  "commit": "80573f3b938c33796389fd0e72edda8a0f07b566",
  "tree": "82012e0fadfd4a9283d73e1bf4920b7d969cb016",
  "parents": [
    "3e0077e18620ffa20290de59d6666feb629915f2"
  ],
  "author": {
    "name": "David Ostrovsky",
    "email": "david@ostrovsky.org",
    "time": "Fri Nov 13 08:49:34 2026 +0100"
  },
  "committer": {
    "name": "David Ostrovsky",
    "email": "david@ostrovsky.org",
    "time": "Sat Nov 14 10:53:48 2026 +0100"
  },
  "message": "FetchProcess: validate only remote-derived fetch destinations\n\nChange If44f82ed92 (\"Validate expanded fetch destinations against ref\nname rules\") added the destination check in want(). want() is the\ncommon sink for three callers at two trust levels: expandWildcard and\nwantTag build the destination from a remote-advertised name, while\nexpandSingle uses the caller\u0027s explicit destination. Checking in want()\ntherefore also rejected explicit destinations such as FETCH_HEAD, so\nEGit\u0027s \"Fetch GitHub Pull Request\" and \"Fetch from Gerrit\" (refspec\nrefs/pull/\u003cn\u003e/head:FETCH_HEAD) silently dropped the mapping and later\nfailed with MissingObjectException.\n\nValidate the two remote-derived destinations instead: in expandWildcard\non the wildcard-expanded name, and in wantTag on the auto-followed or\n--tags tag name. Leave explicit caller destinations in expandSingle\nunchecked, matching native git, which rewrites and accepts them. Both\nremote-derived paths stay guarded, so neither a wildcard expansion nor\na hostile tag name can introduce a path-traversal destination.\n\nAdd a test fetching refs/pull/1/head:FETCH_HEAD over protocol v0 and v2\n(the regression), and two tests that a traversal tag name is dropped\nwithout escaping the repository, one over --tags and one over the\ndefault auto-follow path.\n\nBug: jgit-318\nChange-Id: I21e88a7c331f3ffa04f811eece4b6dc86ceeee27\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1d7bdab35a30642c84d5bf83575eb995409c8b49",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/FetchMaliciousRefNameTest.java",
      "new_id": "af2a91a132eca92060c69fd417a39c5a895626d4",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit.test/tst/org/eclipse/jgit/transport/FetchMaliciousRefNameTest.java"
    },
    {
      "type": "modify",
      "old_id": "83a8506d6aeb365fbe2a34094c1ea5fe39e70601",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit/src/org/eclipse/jgit/transport/FetchProcess.java",
      "new_id": "b743611f4b1a983e7febac8cdde4f0093a32bcd7",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit/src/org/eclipse/jgit/transport/FetchProcess.java"
    }
  ]
}
