)]}'
{
  "commit": "97d418e1895740a2ee10eb54e6279ee762aaaa35",
  "tree": "c9b12547365b9f6e78ea328d6d3461288393a6ba",
  "parents": [
    "b89ae948646625812b308b902a617ea63317a880"
  ],
  "author": {
    "name": "Antoine Musso",
    "email": "hashar@free.fr",
    "time": "Tue Sep 30 19:35:40 2025 +0200"
  },
  "committer": {
    "name": "Antoine Musso",
    "email": "hashar@free.fr",
    "time": "Tue Sep 30 19:39:56 2025 +0200"
  },
  "message": "Fix edit link when base URL has a path\n\nOn a setup having a path prefix such as `/r` the edit link woud be\nbroken because the prefix is stripped.\n\nThe reason is `URI.resolve()` is given an absolute path which strip the\npath from the base URI:\n\n  jshell\u003e new URI(\"https://example.org/r\").resolve(\"/admin/repos/edit\");\n                                      ^^\n  $2 \u003d\u003d\u003e https://example.org/admin/repos/edit\n                           ^^^____oops\n\nWhich is consistent with python `os.path`:\n\n  \u003e\u003e\u003e os.path.join(\u0027https://example.org/r\u0027, \u0027/admin/repos/edit\u0027);\n  \u0027/admin/repos/edit\u0027\n\nRemove the leading slash from the edit URI and update the test with the\nproper expected value.\n\nBug: https://phabricator.wikimedia.org/T405481\nChange-Id: I98e9d89cbc4850270f81b52665f2c8849f25c879\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b2563b0d6ace443984b7b49d1c433fad143e6b23",
      "old_mode": 33188,
      "old_path": "java/com/google/gitiles/PathServlet.java",
      "new_id": "a5c46e249ce48227c3637f5220a365c168fcaea2",
      "new_mode": 33188,
      "new_path": "java/com/google/gitiles/PathServlet.java"
    },
    {
      "type": "modify",
      "old_id": "660cc2f6915de502682a3a46827c4f70271ae3cf",
      "old_mode": 33188,
      "old_path": "javatests/com/google/gitiles/PathServletTest.java",
      "new_id": "966d7e92a84d0e96ec7dd6b9e0fb906360fb6aa0",
      "new_mode": 33188,
      "new_path": "javatests/com/google/gitiles/PathServletTest.java"
    }
  ]
}
