Fix error when cleaning up MR with no head ref
When `MergeRequests::CleanupRefsService` runs on a merge request that has no head ref (`refs/merge-requests/:iid/head`), it throws a `NoMethodError` when getting the commit id. To fix it, there's ensure that we handle that case.
Showing
Please register or sign in to comment