GitlabVersion
nwb 11 years ago
parent e98f548bc3
commit ff80ef7f42

@ -143,13 +143,11 @@ class Repository < ActiveRecord::Base
# 兼容老git模式
ip = RepositoriesHelper::REPO_IP_ADDRESS
if ip.nil?
ip = Setting.repository_domain
end
self.url
else
project_path_cut = RepositoriesHelper::PROJECT_PATH_CUT
if project_path_cut.nil?
project_path_cut = 40
end
"http://" + self.login.to_s + self.identifier.to_s + ip + self.url.slice(project_path_cut, self.url.length)
end
else
self.url
end

Loading…
Cancel
Save