)]}'
{
  "commit": "d2f537b1e397daa13e02a8085feb32f5ad7c5dec",
  "tree": "a659cb254f9d499306e632c22d8a70e7c81b40ff",
  "parents": [
    "0e6f876eecf17830b8dd9f1db008aaf3a239966e"
  ],
  "author": {
    "name": "msta",
    "email": "msta@google.com",
    "time": "Thu Jul 09 13:26:28 2026 +1000"
  },
  "committer": {
    "name": "gn-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "gn-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Wed Jul 08 21:23:44 2026 -0700"
  },
  "message": "Fix command_format_unittest.cc out-of-tree builds.\n\nThe format unittests were relying on the source root being exactly one\ndirectory level up from the executable directory. This assumption fails\nwhen building with a custom or nested output directory, such as\nout/Default, or when building out-of-tree (like in /tmp/gn-release).\n\nTo resolve this robustly:\n1. build/gen.py now writes the absolute path of the repository root\n   (REPO_ROOT) to source_root.txt in the build directory.\n2. GetFormatTestDataDir() in src/gn/command_format_unittest.cc reads\n   source_root.txt to dynamically resolve the repository root and sets\n   the CWD to that location. If the file cannot be read, it fails\n   immediately via CHECK.\n\nBug: None\nChange-Id: I93d9a1642720ce912fd767e76eb414016a6a6964\nReviewed-on: https://gn-review.googlesource.com/c/gn/+/23944\nReviewed-by: Takuto Ikuta \u003ctikuta@google.com\u003e\nCommit-Queue: Matt Stark \u003cmsta@google.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6f13c8c1a10de8cd375bf9ef583ddaf97f5eb1f1",
      "old_mode": 33261,
      "old_path": "build/gen.py",
      "new_id": "e3f2c46b538a19a5ce79a25a5c72e6593d2a483f",
      "new_mode": 33261,
      "new_path": "build/gen.py"
    },
    {
      "type": "modify",
      "old_id": "4a8c5975ba95c5da44880e1739b69708e525e332",
      "old_mode": 33188,
      "old_path": "src/gn/command_format_unittest.cc",
      "new_id": "8500525b7b272dab054af9ec2eede9053e7d33a2",
      "new_mode": 33188,
      "new_path": "src/gn/command_format_unittest.cc"
    }
  ]
}
