[前][次][番号順一覧][スレッド一覧]

ruby-changes:57635

From: Nobuyoshi <ko1@a...>
Date: Sat, 7 Sep 2019 12:35:17 +0900 (JST)
Subject: [ruby-changes:57635] 5118aa2d58 (master): Use `git describe --contains` for tags

https://git.ruby-lang.org/ruby.git/commit/?id=5118aa2d58

From 5118aa2d58f70a2f1349daa784705d20b2928869 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 7 Sep 2019 01:02:37 +0900
Subject: Use `git describe --contains` for tags


diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index 9c40859..f124564 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -482,7 +482,7 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L482
       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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]