Modify check if site is up-to-date
This commit is contained in:
parent
4540f23a3f
commit
2afe961416
|
@ -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
|
||||
|
||||
|
|
Reference in New Issue