Skip to content

Log raw pre-receive message in fast-forward merge

Stan Hu requested to merge sh-track-ff-merge-pre-receive-errors into master

When a pre-receive error happens in the fast-forward merge, the original error is discarded, and only text prefaced with GL-HOOK-ERR is passed through. However, this makes it difficult to know what went wrong.

To fix this, we:

  1. Store the raw message to Gitlab::Git::PreReceiveError
  2. Log an exception with the raw message

Relates to #227876

Edited by Stan Hu

Merge request reports