Commit dee11dad authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix submodules

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 8b6a14b5
...@@ -3,7 +3,10 @@ module SubmoduleHelper ...@@ -3,7 +3,10 @@ module SubmoduleHelper
# links to files listing for submodule if submodule is a project on this server # links to files listing for submodule if submodule is a project on this server
def submodule_links(submodule_item) def submodule_links(submodule_item)
url = submodule_item.submodule_url submodule = @repository.submodules(@ref)[submodule_item.path]
url = submodule['url'] if submodule
return url, nil unless url =~ /([^\/:]+\/[^\/]+\.git)\Z/ return url, nil unless url =~ /([^\/:]+\/[^\/]+\.git)\Z/
project = $1 project = $1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment