fix error

This commit is contained in:
chiu 2020-03-16 16:25:50 +08:00
parent e9f21006b0
commit 96a40a6326
1 changed files with 2 additions and 2 deletions

View File

@ -174,10 +174,10 @@ class Admin::SitesController < OrbitAdminController
end end
git = 'git_1.9.1/usr/bin/git' git = 'git_1.9.1/usr/bin/git'
end end
git_add_except_public = Dir['*'].select{|v| v!= 'public' && v!= 'log'}.collect do |v| git_add_except_public = Dir['*'].select{|v| v!= 'public' && v!= 'log' && v != 'dump' && v != 'tmp'}.collect do |v|
"#{git} add -f --all --ignore-errors '#{v}'" "#{git} add -f --all --ignore-errors '#{v}'"
end.join(' ; ') end.join(' ; ')
git_add_custom = (Dir['*'].select{|v| v !='app' && v != 'lib' && v != 'config' && v != 'public' && v!= 'log'} + ['app/templates','config/mongoid.yml','config/extra_lang.txt']).collect do |v| git_add_custom = (Dir['*'].select{|v| v !='app' && v != 'lib' && v != 'config' && v != 'public' && v!= 'log' && v != 'dump' && v != 'tmp'} + ['app/templates','config/mongoid.yml','config/extra_lang.txt']).collect do |v|
"#{git} add -f --all --ignore-errors '#{v}'" "#{git} add -f --all --ignore-errors '#{v}'"
end.join(' ; ') end.join(' ; ')
git_restore = "#{git} checkout ." git_restore = "#{git} checkout ."