mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix error when commit hash is removed [ci skip]
This commit is contained in:
parent
b51b22513f
commit
8873c420d3
1 changed files with 1 additions and 1 deletions
|
@ -17,6 +17,6 @@ unless /^[^#]/ !~ (gem = $F[0])
|
|||
end
|
||||
end
|
||||
f = [gem.name, gem.version.to_s, uri, *$F[3..-1]]
|
||||
$_.gsub!(/\S+\s*/) {|s| f.shift.ljust(s.size)}
|
||||
$_.gsub!(/\S+\s*/) {|s| (f.shift || "").ljust(s.size)}
|
||||
$_ = [$_, *f].join(" ") unless f.empty?
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue