)]}'
{
  "commit": "2e6d23ceaac38c552f1015c735f9684fde7bffbe",
  "tree": "04121bc8b8ac97f9a65f4a3cd903d3e4e1993501",
  "parents": [
    "6860207e32d4e8cb2c6c7efaee2a6f5482e84207"
  ],
  "author": {
    "name": "Antonio Barone",
    "email": "syntonyze@gmail.com",
    "time": "Thu Mar 16 18:44:10 2023 +0100"
  },
  "committer": {
    "name": "Antonio Barone",
    "email": "syntonyze@gmail.com",
    "time": "Wed Mar 22 12:48:14 2023 +0100"
  },
  "message": "Introduce concept of permanent failure\n\nCurrently, when a fetch command fails due to a transport exception it is\nalways retried (up to maxRetries times).\n\nWhilst there are some cases in which this is the correct thing to do\n(transient failures due to network, for example), some errors are\npersistent by nature and retrying will lead to another failure.\n\nThis is the case, for example, when a fetch fails due to the refs\nmissing from the remote.\n\nIntroduce the concept of permanent failure for which no retries should\nbe attempted.\n\nPermanent failures currently are:\n- SSH exception due to an UnknownHostKey\n- The ref being fetched does not exist on the remote\n\nBug: Issue 16743\nChange-Id: I88bdb75e84ea99b1c600d282872304acd3a15466\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "1fc36131700981fcf4c780fabae2c6ded5c48780",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/replication/pull/FetchOne.java",
      "new_id": "43db9072b619111d2ae4b79068f41fb78828d89e",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/replication/pull/FetchOne.java"
    },
    {
      "type": "modify",
      "old_id": "89972cf477a1e1895fe3c1970823ac61517e0878",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/replication/pull/fetch/JGitFetch.java",
      "new_id": "74ad9fc85d39ecfab721d9775e4395f3f6e58505",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/replication/pull/fetch/JGitFetch.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "1d96a0222ecf4b3d4750f595a214000b97de62ef",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/replication/pull/fetch/PermanentTransportException.java"
    },
    {
      "type": "modify",
      "old_id": "eb15c02052f1ff4f3f7b8f6b3c0466efae1cb585",
      "old_mode": 33188,
      "old_path": "src/main/resources/Documentation/config.md",
      "new_id": "b76585eadc48e3d89e8a5e254a3a01382c896f10",
      "new_mode": 33188,
      "new_path": "src/main/resources/Documentation/config.md"
    },
    {
      "type": "modify",
      "old_id": "406cd8caa5b6c72616042a0e6ef3d9e8647e86d1",
      "old_mode": 33188,
      "old_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/CGitFetchIT.java",
      "new_id": "3f408488399aed23f22535ccf7f1f56930f2e01a",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/CGitFetchIT.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "2a11717162ad65cf283db85fcee38d5524d54b72",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/FetchITBase.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "ec695a620cf51366d807e83acf1f7c90b886e664",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/JGitFetchIT.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "fb4fb0424392f2be388176cf725dbe90692a351b",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/replication/pull/PermanentFailureExceptionTest.java"
    }
  ]
}
