Commit aa0529af5a89926f02f87344d2d983ed271612fd
1 parent
490f99d4
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 |