summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-06-27 14:20:26 +0200
committerJacob Vosmaer <jacob@gitlab.com>2017-06-27 16:03:35 +0200
commitcf131bf71323ee9812c503adedbcd347097efe48 (patch)
treefcfb63c09a4785d06cc1de7c4555d40c3d5cf28a /app/models
parent99bdfd189bc9728444923b93fdd839ebe2b24eb5 (diff)
downloadgitlab-ce-cf131bf71323ee9812c503adedbcd347097efe48.tar.gz
Make Gitlab::Ggit::Repository#submodules private
Diffstat (limited to 'app/models')
-rw-r--r--app/models/repository.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/app/models/repository.rb b/app/models/repository.rb
index c67475357d9..8c24e722a8b 100644
--- a/app/models/repository.rb
+++ b/app/models/repository.rb
@@ -605,22 +605,6 @@ class Repository
end
end
- # Returns url for submodule
- #
- # Ex.
- # @repository.submodule_url_for('master', 'rack')
- # # => git@localhost:rack.git
- #
- def submodule_url_for(ref, path)
- if submodules(ref).any?
- submodule = submodules(ref)[path]
-
- if submodule
- submodule['url']
- end
- end
- end
-
def last_commit_for_path(sha, path)
sha = last_commit_id_for_path(sha, path)
commit(sha)