Commit 05c5b77070ef444ba1298e984b1f583d11a106ee
1 parent
71e7bff1
Exists in
spb-stable
and in
3 other branches
Fix submodules 500 error
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/repository.rb
@@ -196,7 +196,7 @@ class Repository | @@ -196,7 +196,7 @@ class Repository | ||
196 | # # => git@localhost:rack.git | 196 | # # => git@localhost:rack.git |
197 | # | 197 | # |
198 | def submodule_url_for(ref, path) | 198 | def submodule_url_for(ref, path) |
199 | - if submodules.any? | 199 | + if submodules(ref).any? |
200 | submodule = submodules(ref)[path] | 200 | submodule = submodules(ref)[path] |
201 | 201 | ||
202 | if submodule | 202 | if submodule |