Problems with 8.0...
I upgraded GitLab from 7.14 to 8.0, however I found 2 problems:
- Some of the Merge Requests' diff cannot be shown, the errors are
ActionView::Template::Error (Revspec '4050cd3c677fd8fbd3799f433a82d9b5145270ba' not found.):
1: - blob = project.repository.blob_for_diff(@commit, diff_file.diff)
2: - return unless blob
3: - blob_diff_path = namespace_project_blob_diff_path(project.namespace, project, tree_join(@commit.id, diff_file.file_path))
4: .diff-file{id: "diff-#{i}", data: {blob_diff_path: blob_diff_path }}
app/models/repository.rb:163:in `method_missing'
app/models/repository.rb:175:in `blob_at'
app/models/repository.rb:315:in `blob_for_diff'
app/views/projects/diffs/_file.html.haml:1:in `_app_views_projects_diffs__file_html_haml__3139885779130294577_70078027468600'
app/views/projects/diffs/_diffs.html.haml:18:in `block in _app_views_projects_diffs__diffs_html_haml__4142953805866261964_70078023934260'
app/views/projects/diffs/_diffs.html.haml:17:in `each'
app/views/projects/diffs/_diffs.html.haml:17:in `each_with_index'
app/views/projects/diffs/_diffs.html.haml:17:in `_app_views_projects_diffs__diffs_html_haml__4142953805866261964_70078023934260'
app/views/projects/merge_requests/show/_diffs.html.haml:2:in `_app_views_projects_merge_requests_show__diffs_html_haml___520493012206391483_70078023145080'
app/controllers/application_controller.rb:246:in `view_to_html_string'
app/controllers/projects/merge_requests_controller.rb:67:in `block (2 levels) in diffs'
app/controllers/projects/merge_requests_controller.rb:65:in `diffs'
while I'm pretty sure that I can found this revision in the repository.
In such MRs, the related commits are not found, the pages shows Git Resource Not found
, and as the first, I can found revision in repo.
- I didn't use CI with GitLab, then some MRs will lead to 500. the errors are
ActionView::Template::Error (No route matches {:action=>"show", :controller=>"ci/projects", :id=>nil, :namespace_id=>"boss", :project_id=>"aaa"} missing required keys: [:id]):
78:
79: - if @project.gitlab_ci?
80: = nav_link(controller: [:ci, :project]) do
81: = link_to ci_project_path(@project.gitlab_ci_project), title: 'Continuous Integration', data: {placement: 'right'} do
82: = icon('building fw')
83: %span
84: Continuous Integration
app/views/layouts/nav/_project.html.haml:81:in `block in _app_views_layouts_nav__project_html_haml__2242794227111945863_70078026434600'
app/helpers/tab_helper.rb:55:in `nav_link'
app/views/layouts/nav/_project.html.haml:80:in `_app_views_layouts_nav__project_html_haml__2242794227111945863_70078026434600'
app/views/layouts/_page.html.haml:11:in `_app_views_layouts__page_html_haml___3215509459091658779_70078024811720'
app/views/layouts/application.html.haml:13:in `_app_views_layouts_application_html_haml___4290257217422409614_70078018784980'
app/views/layouts/project.html.haml:14:in `_app_views_layouts_project_html_haml__1189790266903976471_70078019367200'
app/controllers/projects/merge_requests_controller.rb:48:in `show'
If I downgrade to 7.14, the MRs are good. Please help, I have to use 7.14 currently ...