)]}'
{
  "commit": "44ed20244a7809cade1da9fc92e480fda872202f",
  "tree": "9a19efcd7774e6b14d1bd450c65f3f5f850ca424",
  "parents": [
    "6860207e32d4e8cb2c6c7efaee2a6f5482e84207"
  ],
  "author": {
    "name": "Fabio Ponciroli",
    "email": "ponch78@gmail.com",
    "time": "Tue Mar 21 19:33:22 2023 +0100"
  },
  "committer": {
    "name": "Fabio Ponciroli",
    "email": "ponch78@gmail.com",
    "time": "Wed Mar 22 18:27:54 2023 +0100"
  },
  "message": "Allow creation of new projects\n\nThis change [1] introduced a regression when creating a new project.\n\nProject creation is skipped since the Source#shouldReplicate\ncheck for projects existance in the cache [2], hence the method\nshould NOT be invoked for new projects.\n\nCheck the source configuration, but skipping the cache.\nAs part of the source configuration check, the\n`remote.NAME.createMissingRepositories` flag is checked as well.\n\nNote that the logic is not taking into consideration if a project\nis  hidden.\nA project could potentially be created on the remote and be\nvisible until the correct \u0027refs/meta/config\u0027 isn\u0027t replicated\nfrom the source.\n\nThe same is currently happening for push-replication, hence there\nis no regression between the two solutions.\n\n[1]: https://gerrit-review.googlesource.com/c/plugins/pull-replication/+/363004\n[2]: https://gerrit.googlesource.com/plugins/pull-replication/+/refs/heads/stable-3.4/src/main/java/com/googlesource/gerrit/plugins/replication/pull/Source.java#376\n\nBug: Issue 16790\nChange-Id: Idd1bd88b8c46d31993896640fd9f9ae071ee034d\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "6bf4c219e535aa760167db0ec25067574e9912ae",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/replication/pull/Source.java",
      "new_id": "db7728b538ff51ea99dee990a62305880c58281b",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/replication/pull/Source.java"
    },
    {
      "type": "modify",
      "old_id": "6aabcd576e88e7533a05960d137fce8201a680f3",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/replication/pull/event/StreamEventListener.java",
      "new_id": "2ea8a33b2fd314052b6ad0dc48eda8111032c843",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/replication/pull/event/StreamEventListener.java"
    },
    {
      "type": "modify",
      "old_id": "3e7153014421f3ef0d882a808ef32d783345fef6",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/event/StreamEventListenerTest.java",
      "new_id": "92314a4cdfc9298b956c1116a19c21f85b6c9b2e",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/event/StreamEventListenerTest.java"
    }
  ]
}
