|
|
|
@ -610,7 +610,8 @@ class WelcomeController < ApplicationController
|
|
|
|
|
g = Gitlab.client
|
|
|
|
|
shixun.update_column(:git_url, g.project(shixun.gpid).path_with_namespace)
|
|
|
|
|
local_git_path = local_shixun.local_giturl.split('/').last if local_shixun.local_giturl.present?
|
|
|
|
|
new_giturl = "http://educoder:xinhu1ji2qu3@"+g.project(shixun.gpid).http_url_to_repo.split('//').last
|
|
|
|
|
# 海工版本
|
|
|
|
|
# new_giturl = "http://educoder:xinhu1ji2qu3@"+g.project(shixun.gpid).http_url_to_repo.split('//').last
|
|
|
|
|
# 如果有目录才执行
|
|
|
|
|
# logger.info("##########_------------- path: #{File.directory?("/home/pdl/trustie24/tmp/repositories/local/#{local_git_path}")}")
|
|
|
|
|
# logger.info("##########_------------- new_giturl: #{new_giturl}")
|
|
|
|
@ -622,6 +623,7 @@ class WelcomeController < ApplicationController
|
|
|
|
|
# end
|
|
|
|
|
|
|
|
|
|
# 如果有目录才执行
|
|
|
|
|
new_giturl = "http://edugit:xinedugit#@"+g.project(shixun.gpid).http_url_to_repo.split('//').last
|
|
|
|
|
logger.info("##########_------------- path: #{File.directory?("/home/pdl/educoder/tmp/repositories/local/#{local_git_path}")}")
|
|
|
|
|
logger.info("##########_------------- path: #{"/home/pdl/educoder/tmp/repositories/local/#{local_git_path}"}")
|
|
|
|
|
logger.info("##########_------------- new_giturl: #{new_giturl}")
|
|
|
|
|