Speed up notedb verification for Gerrit replicas

The Gerrit replica deployments validated on startup, that the notedb
was initialized. This was necessary, since Gerrit wouldn't start up
otherwise. This was done using `git show-ref`, which is far too slow
for repositories with a lot of refs.

Using `git rev-parse --verify` speeds up the process considerably.

Change-Id: Ic76fa6e5232091f2d541c429e80877f9771fe2b5
diff --git a/container-images/gerrit-init/tools/validate_notedb.py b/container-images/gerrit-init/tools/validate_notedb.py
index 92f96f0..1d23474 100755
--- a/container-images/gerrit-init/tools/validate_notedb.py
+++ b/container-images/gerrit-init/tools/validate_notedb.py
@@ -38,7 +38,11 @@
         return os.path.exists(os.path.join(self.site, "git", repo))
 
     def _test_ref_exists(self, repo, ref):
-        command = "git --git-dir %s/git/%s show-ref %s" % (self.site, repo, ref)
+        command = "git --git-dir %s/git/%s rev-parse --verify %s" % (
+            self.site,
+            repo,
+            ref,
+        )
         git_show_ref = subprocess.run(
             command.split(), stdout=subprocess.PIPE, universal_newlines=True
         )