diff --git a/lib/librarian/source/git/repository.rb b/lib/librarian/source/git/repository.rb
index <HASH>..<HASH> 100644
--- a/lib/librarian/source/git/repository.rb
+++ b/lib/librarian/source/git/repository.rb
@@ -127,7 +127,7 @@ module Librarian
             reference = "#{remote}/#{reference}"
           end
 
-          command = %W(rev-parse #{reference} --quiet)
+          command = %W(rev-list #{reference} -1)
           run!(command, :chdir => true).strip
         end
Let's pretend that annotated tags are just like simple tags.