mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Remove deprecated call to Sring#grep for Ruby 1.9.
This commit is contained in:
parent
af3331cfcd
commit
a0240d8f67
1 changed files with 2 additions and 1 deletions
|
@ -69,7 +69,8 @@ module Capistrano
|
|||
def query_revision(revision)
|
||||
return revision if revision_type(revision) == :date
|
||||
revision = yield(scm(cvs_root, :log, "-r#{revision}")).
|
||||
grep(/^date:/).
|
||||
split("\n").
|
||||
select { |line| line =~ /^date:/ }.
|
||||
map { |line| line[/^date: (.*?);/, 1] }.
|
||||
sort.last + " UTC"
|
||||
return revision
|
||||
|
|
Loading…
Reference in a new issue