Skip to content
Snippets Groups Projects
Commit 762b2877 authored by Pavlo Strokov's avatar Pavlo Strokov
Browse files

updateref: Setup a cause of the failure

When Prepare() or Commit() method of the Updater was called inside
UpdaterWithHooks#UpdateReference method the errors returned were
thrown away. Because of it we were missing important part of the
failure cause - the output of the failed git operation. In order to
fix it we now return it as part of the Error instance. The call sites
inspects the error and logs it in case there is any metadata
associated with it.

Closes: https://gitlab.com/gitlab-org/gitaly/-/issues/4677
Changelog: added
parent b920db5a
Showing with 142 additions and 14 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment