Modify check if site is up-to-date

This commit is contained in:
chris2tof 2011-08-25 08:30:09 +08:00
parent 4540f23a3f
commit 2afe961416
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ class Site
def up_to_date?
p res = %x(git remote show origin)
res = res.split('rails_3_1 (')[1].gsub!(')','').strip rescue nil
res = res.split('rails_3_1').pop.gsub('(', '').gsub(')','').strip rescue nil
res.eql?('local out of date') ? false : true
end