Extend CommitMessageFetcher to handle non-commit objects

CommitMessageFetcher expected to fetch for commit objects and failed
for non-commit objects.

With the advent of NoteDB, RefUpdatedEvents sometimes contain
non-commit objects. For example `refs/sequences/changes` typically
references a blob. When this ref gets updated, Gerrit sends a
corresponding RefUpdatedEvent with blobs as oldRev and newRev, which
used to trip up CommitMessageFetcher.

To avoid issues, we extend CommitMessageFetcher to work on ids of
arbitrary objects.

Change-Id: I892b9299f73e71660b1a7d77d7f282a4f563001e
2 files changed
tree: 6b33f06afc353b61ac2424a5496c64e16cd3e5f2
  1. .settings/
  2. src/
  3. tools/
  4. .bazelignore
  5. .bazelrc
  6. .gitignore
  7. bazlets.bzl
  8. BUILD
  9. LICENSE
  10. WORKSPACE