Method: Gitlab::Git::Repository#submodules
- Defined in:
- lib/gitlab_git/repository.rb
#submodules(ref) ⇒ Object
Return hash with submodules info for this repository
Ex. { "rack" => { "id" => "c67be4624545b4263184c4a0e8f887efd0a66320", "path" => "rack", "url" => "git://github.com/chneukirchen/rack.git" }, "encoding" => { "id" => .... } }
551 552 553 554 555 556 557 558 559 560 561 562 |
# File 'lib/gitlab_git/repository.rb', line 551 def submodules(ref) commit = rev_parse_target(ref) return {} unless commit begin content = blob_content(commit, ".gitmodules") rescue InvalidBlobName return {} end parse_gitmodules(commit, content) end |