)]}'
{
  "commit": "374ddf9612eb8898a67c0c721bb37c5144222381",
  "tree": "10e81a23697cc9384513b7517a62fb6ddcbe30be",
  "parents": [
    "40ef0cb1cef5771b880b0c72e51771812137436a"
  ],
  "author": {
    "name": "Luca Milanesio",
    "email": "luca.milanesio@gmail.com",
    "time": "Wed Jun 19 18:23:03 2024 +0100"
  },
  "committer": {
    "name": "Luca Milanesio",
    "email": "luca.milanesio@gmail.com",
    "time": "Wed Jun 19 18:02:25 2024 +0000"
  },
  "message": "Fix accidental overwrite of existing url and push specs\n\nWhen importing additional repositories on an existing organisation,\nthe GitHub plugin preserves the legacy \u0027url\u0027 and \u0027push\u0027 specs\nfor allowing custom ad-hoc settings, such as the use of stable SSH\nkeys for replication or more restrictive push specs.\n\nThe abstraction of the replication configuration update implemented\nwith I9bde7e1148 has accidental broken the current behaviour causing\na regression in how the remotes are configured.\n\nReintroduce the correct behaviour by reading the existing config\nwhen updating a remote and avoid overwriting the url and push\nreplication settings.\n\nChange-Id: Idd7113f6c0549d752b1dd31bf52d960aee1f77b1\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "bef109c342b3290214ac0943fcb2b7ba7acd843a",
      "old_mode": 33188,
      "old_path": "github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/git/ReplicationRemoteConfigBuilder.java",
      "new_id": "fc808d839d1ccb2a4461e48e01e9bbed37de6487",
      "new_mode": 33188,
      "new_path": "github-plugin/src/main/java/com/googlesource/gerrit/plugins/github/git/ReplicationRemoteConfigBuilder.java"
    },
    {
      "type": "modify",
      "old_id": "c6023e01cf64a19f9c6fd6f5d6719a835ddd5a16",
      "old_mode": 33188,
      "old_path": "github-plugin/src/test/java/com/googlesource/gerrit/plugins/github/git/ReplicationRemoteConfigBuilderTest.java",
      "new_id": "015b52e7c842e51d79ed50970ad21a726aef6a37",
      "new_mode": 33188,
      "new_path": "github-plugin/src/test/java/com/googlesource/gerrit/plugins/github/git/ReplicationRemoteConfigBuilderTest.java"
    }
  ]
}
