diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-02-10 15:02:26 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-02-10 15:02:26 +0400 |
commit | bed05a1381fab0b7c74817f68aac8e18c60c6a25 (patch) | |
tree | cfc5683f8e9360662562c2146c3a18ceb43ebfef /app/helpers | |
parent | dee11dadad88ed83300c7684aab52e5508f29f24 (diff) |
Fix submodule_helper specs
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/submodule_helper.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/helpers/submodule_helper.rb b/app/helpers/submodule_helper.rb index 319bf35327f..56f6e4d9cc1 100644 --- a/app/helpers/submodule_helper.rb +++ b/app/helpers/submodule_helper.rb @@ -3,9 +3,7 @@ module SubmoduleHelper # links to files listing for submodule if submodule is a project on this server def submodule_links(submodule_item) - submodule = @repository.submodules(@ref)[submodule_item.path] - - url = submodule['url'] if submodule + url = @repository.submodule_url_for(@ref, submodule_item.path) return url, nil unless url =~ /([^\/:]+\/[^\/]+\.git)\Z/ |