From 128c5c48e647a83639a4192bb6c8dbabffaa0d5b Mon Sep 17 00:00:00 2001 From: yystopf Date: Tue, 7 Feb 2023 15:56:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/repositories_helper.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/helpers/repositories_helper.rb b/app/helpers/repositories_helper.rb index d05d54611..a9a17084e 100644 --- a/app/helpers/repositories_helper.rb +++ b/app/helpers/repositories_helper.rb @@ -200,8 +200,7 @@ module RepositoriesHelper def repo_git_submodule_url(owner, repo, path) unless (path.starts_with?('http://') || path.starts_with?('https://')) - path = File.expand_path(path, "#{base_url}/#{owner&.login}/#{repo&.identifier}") - path = path.split("#{Rails.root}/")[1] + path = File.expand_path(path, "/#{owner&.login}/#{repo&.identifier}") end return path