diff options
-rw-r--r-- | app/models/repository.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb index 99d908b5d81..a2317fd592f 100644 --- a/app/models/repository.rb +++ b/app/models/repository.rb @@ -196,7 +196,7 @@ class Repository # # => git@localhost:rack.git # def submodule_url_for(ref, path) - if submodules.any? + if submodules(ref).any? submodule = submodules(ref)[path] if submodule |