海工账号

dev_local
daiao 6 years ago
parent 6c9b9ce93e
commit 4574e13a88

@ -610,7 +610,8 @@ class WelcomeController < ApplicationController
g = Gitlab.client g = Gitlab.client
shixun.update_column(:git_url, g.project(shixun.gpid).path_with_namespace) 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? 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("##########_------------- path: #{File.directory?("/home/pdl/trustie24/tmp/repositories/local/#{local_git_path}")}")
# logger.info("##########_------------- new_giturl: #{new_giturl}") # logger.info("##########_------------- new_giturl: #{new_giturl}")
@ -622,6 +623,7 @@ class WelcomeController < ApplicationController
# end # 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: #{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("##########_------------- path: #{"/home/pdl/educoder/tmp/repositories/local/#{local_git_path}"}")
logger.info("##########_------------- new_giturl: #{new_giturl}") logger.info("##########_------------- new_giturl: #{new_giturl}")

Loading…
Cancel
Save