)]}'
{
  "commit": "2a026ffe80b094acae73f143b5f40062d97d732b",
  "tree": "0ab552927a92dc264fd5af34cdc1fa804f62c294",
  "parents": [
    "b47d1dbfd25869a192417994617b7f755dedc4da"
  ],
  "author": {
    "name": "Han Wang",
    "email": "nesthanwang@google.com",
    "time": "Tue Aug 25 21:46:59 2026 +0000"
  },
  "committer": {
    "name": "gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Fri Aug 28 10:55:52 2026 -0700"
  },
  "message": "Support dynamic ${REPO_ROOT} path resolution\n\nSome workspaces combine multiple components into a single checkout\nby nesting them under subdirectories (e.g., \u0027android/\u0027, \u0027kernel/\u0027).\nThis breaks existing PREUPLOAD.cfg files designed for single-tree\nlayouts, as they hardcode tool paths relative to ${REPO_ROOT}\n(e.g., `${REPO_ROOT}/vendor/google/tools/alint`).\n\nThis change introduces a fallback mechanism during variable expansion\nas an alternative to requiring individual project owners to break\nupstream compatibility.\n\nIf a path anchored by ${REPO_ROOT} does not exist at the workspace root,\nrepohooks will attempt to resolve it by checking against a\ncomma-separated list of fallback subdirectories defined in the\n`fallback_subtrees` option under the `[Options]` section of\nGLOBAL-PREUPLOAD.cfg. This option is restricted to GLOBAL-PREUPLOAD.cfg\nas subtree path mapping is inherently a workspace-wide layout setting.\n\nThe configured subtrees are parsed by PreUploadConfig and passed\nthrough HookOptions to Placeholders, preserving layer separation and\navoiding redundant disk I/O during hook execution.\n\nBug: 515602104\nTest: ./run_tests\nChange-Id: I8b80ccc3e4f633d55036491dd8f029a94f07880a\nReviewed-on: https://gerrit-review.googlesource.com/c/git-repohooks/+/622561\nCommit-Queue: Han Wang \u003cnesthanwang@google.com\u003e\nTested-by: Han Wang \u003cnesthanwang@google.com\u003e\nReviewed-by: Gavin Mak \u003cgavinmak@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "40afc2042af9c371c5c8a492f47793f3d8213e8f",
      "old_mode": 33188,
      "old_path": "README.md",
      "new_id": "a45dfbcc1199d302af5629add5435248ecaa7d19",
      "new_mode": 33188,
      "new_path": "README.md"
    },
    {
      "type": "modify",
      "old_id": "10686da29f5f54d73a8bf70b89c3fe5c94f259b9",
      "old_mode": 33188,
      "old_path": "rh/config.py",
      "new_id": "ec016aea0d667b10ba0a2fe893961166e4f00708",
      "new_mode": 33188,
      "new_path": "rh/config.py"
    },
    {
      "type": "modify",
      "old_id": "80423afcd287e43e0b1e7e5850136628f75c148a",
      "old_mode": 33261,
      "old_path": "rh/config_unittest.py",
      "new_id": "cb5d1864da6d270e445a19810cc8ee7da96012ee",
      "new_mode": 33261,
      "new_path": "rh/config_unittest.py"
    },
    {
      "type": "modify",
      "old_id": "5bd654fd48f0ef0dece86567a0c8e97df93e01d3",
      "old_mode": 33188,
      "old_path": "rh/hooks.py",
      "new_id": "9627ae854cdc9c8209c4ce080fa360327b220ad4",
      "new_mode": 33188,
      "new_path": "rh/hooks.py"
    },
    {
      "type": "modify",
      "old_id": "0979c08ec442277231146f7ec50f88a12a0305f0",
      "old_mode": 33261,
      "old_path": "rh/hooks_unittest.py",
      "new_id": "36b3821e3d14ab33289c31aab713c7c5661d71fa",
      "new_mode": 33261,
      "new_path": "rh/hooks_unittest.py"
    }
  ]
}
