Browse Source

Merge branch 'develop' into standalone_develop

pull/342/head
yystopf 3 years ago
parent
commit
8210404f4a
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      app/helpers/repositories_helper.rb

+ 1
- 2
app/helpers/repositories_helper.rb View File

@@ -216,8 +216,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


Loading…
Cancel
Save