|
|
|
@ -622,9 +622,13 @@ class WelcomeController < ApplicationController
|
|
|
|
|
# end
|
|
|
|
|
|
|
|
|
|
# 如果有目录才执行
|
|
|
|
|
if system("cd tmp/repositories/#{local_git_path}")
|
|
|
|
|
system("cd tmp/repositories/#{local_git_path};git remote remove origin;git remote add origin #{new_giturl};
|
|
|
|
|
logger.info("##########_------------- path: #{File.directory?("/home/pdl/educoder/tmp/repositories/local/#{local_git_path}")}")
|
|
|
|
|
logger.info("##########_------------- new_giturl: #{new_giturl}")
|
|
|
|
|
if File.directory?("/home/pdl/educoder/tmp/repositories/local/#{local_git_path}")
|
|
|
|
|
logger.info("@@@@@@@@@@@@@@@@@@@@@@@@@@-----daole")
|
|
|
|
|
system("cd /home/pdl/educoder/tmp/repositories/local/#{local_git_path};git remote remove origin;git remote add origin #{new_giturl};
|
|
|
|
|
git add .;git commit -m '..';git push origin master")
|
|
|
|
|
logger.info("!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!over")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# http://Hjqreturn:xinhu1ji2qu3@bdgit.educoder.net/Hjqreturn/pgfqe6ch8.git (fetch)
|
|
|
|
|