Error on merge request of submodule update commit
The below error occurs from a diff of merge request view. (e.g. http://.../merge_requests/123/diffs)
ActionView::Template::Error (Revspec '2fe9f25dc6fb0af78cf2a952a1184c542cf45695' not found.):
11: = view_file_btn(@commit.parent_id, diff_file, project)
12: - elsif diff_file.diff.submodule?
13: - submodule_item = project.repository.blob_at(@commit.id, diff_file.file_path)
14: = submodule_link(submodule_item, @commit.id)
15: - else
16: - if diff_file.renamed_file
17: %span= "#{diff_file.old_path} renamed to #{diff_file.new_path}"
app/models/repository.rb:170:in `method_missing'
app/models/repository.rb:232:in `submodule_url_for'
app/helpers/submodule_helper.rb:6:in `submodule_links'
app/helpers/diff_helper.rb:140:in `submodule_link'
app/views/projects/diffs/_file.html.haml:14:in `_app_views_projects_diffs__file_html_haml__727675300908585537_115809580'
app/views/projects/diffs/_diffs.html.haml:14:in `block in _app_views_projects_diffs__diffs_html_haml___1550302330890340437_115283300'
app/views/projects/diffs/_diffs.html.haml:13:in `each'
app/views/projects/diffs/_diffs.html.haml:13:in `each_with_index'
app/views/projects/diffs/_diffs.html.haml:13:in `_app_views_projects_diffs__diffs_html_haml___1550302330890340437_115283300'
app/views/projects/merge_requests/show/_diffs.html.haml:2:in `_app_views_projects_merge_requests_show__diffs_html_haml__2627126824916488354_115191920'
app/controllers/application_controller.rb:241:in `view_to_html_string'
app/controllers/projects/merge_requests_controller.rb:58:in `block (2 levels) in diffs'
app/controllers/projects/merge_requests_controller.rb:56:in `diffs'
This merge request contains 3 commits including a corrupt commit which triggers #1412 (closed). But 2fe9f25
is not the commit. 2fe9f25
is also submodule update commit but it can be shown at GitLab without any error.
Maybe this error occurs if a merge request has multiple update commits of same submodule.
I'm using GitLab 7.9.2. It was installed by Omnibus GitLab.