-
- Downloads
There was an error fetching the commit references. Please try again later.
repository: index submodules by path
Submodules have a name in the configuration, but this name is simply
the path at which the submodule was initially checked in (by default
-- the name is totally arbitrary). If a submodule is moved, it
retains its original name, but its path changes. Since we discover
submodules inside trees, we have their path but not necessarily their
name.
Make the submodules() function return the submodule hash indexed by
path rather than name, so that renamed submodules can be looked up.
Signed-off-by:
David Turner <novalis@novalis.org>
parent
4b1c4917
No related branches found
No related tags found
Showing
- changelogs/unreleased/moved-submodules.yml 4 additions, 0 deletionschangelogs/unreleased/moved-submodules.yml
- lib/gitlab/git/gitmodules_parser.rb 77 additions, 0 deletionslib/gitlab/git/gitmodules_parser.rb
- lib/gitlab/git/repository.rb 15 additions, 37 deletionslib/gitlab/git/repository.rb
- spec/lib/gitlab/git/gitmodules_parser_spec.rb 28 additions, 0 deletionsspec/lib/gitlab/git/gitmodules_parser_spec.rb
- spec/lib/gitlab/git/repository_spec.rb 4 additions, 4 deletionsspec/lib/gitlab/git/repository_spec.rb
changelogs/unreleased/moved-submodules.yml
0 → 100644
lib/gitlab/git/gitmodules_parser.rb
0 → 100644