This commit is contained in:
BoHung Chiu 2021-03-13 18:58:14 +08:00
parent 56091b7245
commit c8c6f43d71
1 changed files with 3 additions and 1 deletions

View File

@ -70,7 +70,9 @@ module PersonalPluginGenerator
if %x[#{git} config user.email].empty? if %x[#{git} config user.email].empty?
%x[#{git} config --global user.email "orbit@rulingcom.com"] %x[#{git} config --global user.email "orbit@rulingcom.com"]
end end
Thread.new do
system("#{git_add_except_public} ; #{git} commit -m auto_backup_before_#{type}_#{time_now} --allow-empty && #{git} reset #{commit} --mixed ; #{git_add_custom} ; #{git_restore} ; #{git_add_except_public} ; #{git} clean -f -- app/models ; #{git} commit -m complete_#{type}_#{time_now} --allow-empty") system("#{git_add_except_public} ; #{git} commit -m auto_backup_before_#{type}_#{time_now} --allow-empty && #{git} reset #{commit} --mixed ; #{git_add_custom} ; #{git_restore} ; #{git_add_except_public} ; #{git} clean -f -- app/models ; #{git} commit -m complete_#{type}_#{time_now} --allow-empty")
end
puts "Updated! " + new_updates.first.to_s puts "Updated! " + new_updates.first.to_s
end end
end end