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
|
end
|
||||||
branch = cmd_read_at(srcdir, [gitcmd + %W[symbolic-ref --short #{ref}]])
|
branch = cmd_read_at(srcdir, [gitcmd + %W[symbolic-ref --short #{ref}]])
|
||||||
if branch.empty?
|
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
|
end
|
||||||
if branch.empty?
|
if branch.empty?
|
||||||
branch_list = cmd_read_at(srcdir, [gitcmd + %W[branch --list --contains #{ref}]]).lines.to_a
|
branch_list = cmd_read_at(srcdir, [gitcmd + %W[branch --list --contains #{ref}]]).lines.to_a
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue