Skip to content

for-each-ref --points-at returns references not pointing at the specified object

git for-each-ref returns references that do not actually point at the object specified with --points-at. This can occur when the reference points to an annotated tag that points to the object specified with --points-at

❯ git for-each-ref --format '%(refname) %(objectname)' --points-at 5ea5f391d66b03c01685dce7014433c09ad4a1c3
refs/heads/13-0-stable 5ea5f391d66b03c01685dce7014433c09ad4a1c3
refs/tags/v13.0.3 45c1ab3b9c46ce0bbffc06adf64719403aedf6e5

❯ git show 45c1ab3b9c46ce0bbffc06adf64719403aedf6e5
tag v13.0.3
Tagger: GitLab Release Tools Bot <delivery-team+release-tools@gitlab.com>
Date:   Fri May 29 10:04:14 2020 +0000

Version v13.0.3

commit 5ea5f391d66b03c01685dce7014433c09ad4a1c3 (tag: v13.0.3, 13-0-stable)
Author: GitLab Release Tools Bot <delivery-team+release-tools@gitlab.com>
Date:   Fri May 29 10:04:08 2020 +0000

    Update VERSION to 13.0.3

diff --git a/VERSION b/VERSION
index 347caf39f..2cb4f2f63 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-13.0.2
+13.0.3
diff --git a/ruby/proto/gitaly/version.rb b/ruby/proto/gitaly/version.rb
index 099aa3bea..88b87829a 100644
--- a/ruby/proto/gitaly/version.rb
+++ b/ruby/proto/gitaly/version.rb
@@ -1,5 +1,5 @@
 # This file was auto-generated by release-tools
 #  https://gitlab.com/gitlab-org/release-tools/-/blob/master/lib/release_tools/release/gitaly_release.rb
 module Gitaly
-  VERSION = '13.0.2'
+  VERSION = '13.0.3'
 end