)]}'
{
  "commit": "f3eb27c445c49d7484c3be845c47d03c0bd6e562",
  "tree": "9126508de98005215624ef54a9e1835e12f371a6",
  "parents": [
    "127b69cdeefcdfcceeea2e5a6cae3ebedd1b7642"
  ],
  "author": {
    "name": "Christian Aistleitner",
    "email": "christian@quelltextlich.at",
    "time": "Sat Jun 20 00:31:53 2020 +0200"
  },
  "committer": {
    "name": "Luca Milanesio",
    "email": "luca.milanesio@gmail.com",
    "time": "Fri Jul 03 20:16:05 2020 +0000"
  },
  "message": "Extend CommitMessageFetcher to handle non-commit objects\n\nCommitMessageFetcher expected to fetch for commit objects and failed\nfor non-commit objects.\n\nWith the advent of NoteDB, RefUpdatedEvents sometimes contain\nnon-commit objects. For example `refs/sequences/changes` typically\nreferences a blob. When this ref gets updated, Gerrit sends a\ncorresponding RefUpdatedEvent with blobs as oldRev and newRev, which\nused to trip up CommitMessageFetcher.\n\nTo avoid issues, we extend CommitMessageFetcher to work on ids of\narbitrary objects.\n\nAdd Mockito dependency for executing the associated unit-tests.\n\nBug: Issue 10686\nChange-Id: I892b9299f73e71660b1a7d77d7f282a4f563001e\n(cherry picked from commit 59135736c5bba8b432a81bcc1722576a66563f11)\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "03f8e0abe144ba79c5cc287257ef27e30485fb24",
      "old_mode": 33188,
      "old_path": "BUILD",
      "new_id": "401da87a4be43f2613d4e9e74c4b84bf86646bd3",
      "new_mode": 33188,
      "new_path": "BUILD"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "5eafc37dc138281f4a420d7edba144da92619ea7",
      "new_mode": 33188,
      "new_path": "external_plugin_deps.bzl"
    },
    {
      "type": "modify",
      "old_id": "905a2a36d07873e7d2f1f7072d5aa61d3d132c49",
      "old_mode": 33188,
      "old_path": "src/main/java/com/googlesource/gerrit/plugins/its/base/util/CommitMessageFetcher.java",
      "new_id": "7066f590f52f080b2a8d6614b1f5778a16273115",
      "new_mode": 33188,
      "new_path": "src/main/java/com/googlesource/gerrit/plugins/its/base/util/CommitMessageFetcher.java"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "e833951559a5e9248ca067f71172f7861c615cc9",
      "new_mode": 33188,
      "new_path": "src/test/java/com/googlesource/gerrit/plugins/its/base/util/CommitMessageFetcherTest.java"
    }
  ]
}
