)]}'
{
  "commit": "d75118c5f433969384497aee4b6035e115fda5d6",
  "tree": "7ddffbf12d42797cbe2eb6c5d8f53e11c9659b5f",
  "parents": [
    "ca7342d860d1dfbbcb84495908125781e4863639"
  ],
  "author": {
    "name": "David Ostrovsky",
    "email": "david@ostrovsky.org",
    "time": "Fri Nov 06 19:44:47 2026 +0100"
  },
  "committer": {
    "name": "David Ostrovsky",
    "email": "david@ostrovsky.org",
    "time": "Wed Nov 11 08:10:54 2026 +0100"
  },
  "message": "RepoCommand: reject manifest submodule paths escaping the work tree\n\nRepoCommand\u0027s non-bare route checked out a manifest project at its path\ninside the superproject work tree after only rejecting a leading \"-\". A\nmanifest path of \".git/hooks\" was therefore materialized inside the\nsuperproject\u0027s .git, and the sync\u0027s own commit ran the dropped\npre-commit hook. A copyfile destination could drop a single file into\n.git the same way, and its source could read an out-of-tree file. The\nbare route is already protected because DirCacheEntry routes the path\nthrough ObjectChecker.\n\nAdd SubmoduleValidator.assertValidCheckoutPath(workTree, path) and apply\nit across the non-bare route: before each submodule clone, on every\ncopyfile source and destination, and as a preflight over the whole\nmanifest plan before any project mutates the work tree. The preflight\nmatters because projects are processed sorted by path, so without it a\nbenign project could be checked out before a later symlink-redirected\npath is rejected.\n\nThe check combines ObjectChecker\u0027s lexical path rules (applied for all\nplatforms) with native git\u0027s rule that no leading path component is a\nsymbolic link. It is separate from assertValidSubmodulePath so it does\nnot tighten the stored .gitmodules validation on the receive path.\n\nBug: https://gitlab.eclipse.org/security/vulnerability-reports/-/work_items/404\nChange-Id: I1c3b81f11c804bcce89f5cad370948084527b3de\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ceb18e65b6c4e4e0972f4d69dab258eb4ae52932",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit.test/tst/org/eclipse/jgit/gitrepo/RepoCommandTest.java",
      "new_id": "953e6509eeb891e938480279ebfbbf04aaa77793",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit.test/tst/org/eclipse/jgit/gitrepo/RepoCommandTest.java"
    },
    {
      "type": "modify",
      "old_id": "7632b367c17144c17933075dbd50fb70375929d3",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RegularSuperprojectWriter.java",
      "new_id": "078a16de5940d22b0a3107b81d12fc6b2ae19b33",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit/src/org/eclipse/jgit/gitrepo/RegularSuperprojectWriter.java"
    },
    {
      "type": "modify",
      "old_id": "a4740c9bf60fe0ddae43cf831274ffaa9994c4b6",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit/src/org/eclipse/jgit/internal/submodule/SubmoduleValidator.java",
      "new_id": "66cd59e8433f3a4acfd805c024263359bcf7c5a8",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit/src/org/eclipse/jgit/internal/submodule/SubmoduleValidator.java"
    }
  ]
}
