)]}'
{
  "commit": "2dbd1c85e12d3329bda20fa2ff049d3083522237",
  "tree": "c63a6cc542e12b2494851284b89013bdc19bfc9d",
  "parents": [
    "9a0c4701dcd5725c4184599322b52933ff5005ca"
  ],
  "author": {
    "name": "Éric NICOLAS",
    "email": "ccjmne@gmail.com",
    "time": "Thu Jul 23 02:21:32 2026 +0200"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Wed Jul 22 20:24:21 2026 -0700"
  },
  "message": "submodule: resolve insteadOf aliases when matching remote\n\nWhen ca62f524c1 (submodule: look up remotes by URL first, 2025-06-23)\nintroduced a mechanism to identify which remote is to be used by a\nsubmodule, it compared the URL stored in the .gitmodules inventory to\nthat of each available remote.\n\nThe URLs of remotes are rewritten according to url.\u003cbase\u003e.insteadOf,\nwhereas those stored in the .gitmodules aren\u0027t.  When such aliasing\napplies, no match can be made between the two corresponding sides, and\nthe procedure degrades to its fallback logic electing either the only\nconfigured remote if there is only one, or \"origin\" otherwise.\n\nThat behaviour is unfortunate when no remote is called \"origin\",\nbecause its last resort will have a submodule update command look for a\nnon-existent remote-tracking reference and fail to proceed, instead of\nusing the remote whose rewritten URL matches.\n\nResolve the alias in the URL inventoried in .gitmodules before comparing\nit against those of the corresponding submodule\u0027s configured remotes.\n\nSigned-off-by: Éric NICOLAS \u003cccjmne@gmail.com\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b17648d6ef32e4f438ff9426571d369421e84886",
      "old_mode": 33188,
      "old_path": "remote.c",
      "new_id": "b1fed58e79e35eee1e145b736c7faf28cb3b6991",
      "new_mode": 33188,
      "new_path": "remote.c"
    },
    {
      "type": "modify",
      "old_id": "9554720152f6f0078c9ccee06b8d8eb2110dfb7f",
      "old_mode": 33261,
      "old_path": "t/t7406-submodule-update.sh",
      "new_id": "10adeabf0fcc8595fc05ffb22dfd03f1563c9b02",
      "new_mode": 33261,
      "new_path": "t/t7406-submodule-update.sh"
    }
  ]
}
