diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-07 01:02:37 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-09-07 11:38:38 +0900 |
commit | 5118aa2d58f70a2f1349daa784705d20b2928869 (patch) | |
tree | 0438b1847083e4e4f41a28feb5fbb8b40482c96a | |
parent | 3890c9eeee2322b8bf81c04517a4714de77e49ff (diff) |
Use `git describe --contains` for tags
-rw-r--r-- | tool/lib/vcs.rb | 2 |
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 |