summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tool/lib/vcs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index 9c4085960d..f124564a70 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -482,7 +482,7 @@ class VCS
end
branch = cmd_read_at(srcdir, [gitcmd + %W[symbolic-ref --short #{ref}]])
if branch.empty?
- branch = cmd_read_at(srcdir, [gitcmd + %W[tag --list #{ref}]]).strip
+ branch = cmd_read_at(srcdir, [gitcmd + %W[describe --contains #{ref}]]).strip
end
if branch.empty?
branch_list = cmd_read_at(srcdir, [gitcmd + %W[branch --list --contains #{ref}]]).lines.to_a