mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use git describe --contains
for tags
This commit is contained in:
parent
3890c9eeee
commit
5118aa2d58
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue