)]}'
{
  "commit": "d801c88cb2bdd2447ce18b58900eaa8abea9d1c7",
  "tree": "aa7264b95737c5620b2ea7a08fcaa929c8525d2a",
  "parents": [
    "12ea62d15a51a00a419a99b092729e3f274befd9"
  ],
  "author": {
    "name": "Luca Milanesio",
    "email": "luca.milanesio@gmail.com",
    "time": "Tue Jul 11 01:18:24 2023 +0100"
  },
  "committer": {
    "name": "Luca Milanesio",
    "email": "luca.milanesio@gmail.com",
    "time": "Wed Jul 12 18:33:42 2023 +0100"
  },
  "message": "Fix pull-replication update head with Gerrit replica\n\nI2211201f2 introduced the support for Gerrit replica\nbut all the tests were run against Gerrit primary with\nthe native REST-API, instead of using the pull-replication\nplugin specific API executed through a filter.\n\nThe combination with Gerrit Issue 290794206 made\nthe bug invisible because all UpdateHeadActionIT tests\non replicas were still passing, because the underlying\nGerrit daemon was still a primary even if the test was\nconfigured with container.replica \u003d true.\n\nFix the implementation of the update head functionality\non Gerrit replicas and amend the validation tests for\nmaking sure that it won\u0027t break again in the future.\n\nDepends-On: https://gerrit-review.googlesource.com/c/gerrit/+/379199\nBug: Issue 290644998\nChange-Id: I3af2d2a883ce948f421c9d51ca8d31eb5435c5ec\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "d646cfb13d11fa443afbef4faaa47371742fa247",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/replication/pull/api/PullReplicationFilter.java",
      "new_id": "8feb825bf9eeaf32ad38864a6549eac38b3890b2",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/replication/pull/api/PullReplicationFilter.java"
    },
    {
      "type": "modify",
      "old_id": "2ed146681011af3787e7c42a9683f4515fc3871a",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/api/PullReplicationFilterTest.java",
      "new_id": "9e5ca8d7cd3ce54e1dfa7184424b5c238f144474",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/api/PullReplicationFilterTest.java"
    },
    {
      "type": "modify",
      "old_id": "f6e631f31fd20937c90a30350e103ddd3ca76e32",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/api/UpdateHeadActionIT.java",
      "new_id": "d0f3214034613311fe5805ed0b55a94e2a98f11a",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/api/UpdateHeadActionIT.java"
    }
  ]
}
