Skip to content
Snippets Groups Projects
Commit f118d2fc authored by Nick Thomas's avatar Nick Thomas Committed by blackst0ne
Browse files

Fix two CI endpoints for MRs where the source project is deleted

parent f00ee5c2
No related branches found
No related tags found
Loading
Loading
@@ -398,7 +398,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
Loading
@@ -398,7 +398,7 @@ class Projects::MergeRequestsController < Projects::ApplicationController
   
status ||= "preparing" status ||= "preparing"
else else
ci_service = @merge_request.source_project.ci_service ci_service = @merge_request.source_project.try(:ci_service)
status = ci_service.commit_status(merge_request.diff_head_sha, merge_request.source_branch) if ci_service status = ci_service.commit_status(merge_request.diff_head_sha, merge_request.source_branch) if ci_service
   
if ci_service.respond_to?(:commit_coverage) if ci_service.respond_to?(:commit_coverage)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment