Updater may fail with an opaque error
Our update-ref
wrapper may fail with an opaque error that doesn't explain the reason behind the failure. This happens for example when updating the same reference multiple time in a transaction. For example, if we have:
refs/heads/a
refs/heads/symbolic-a -> refs/heads/a
Deleting both branches in the same transaction without the --deref
flag leads to an EOF
due to the process closing. The actual reason is written to stdeer
but not returned.
We should fix this as its not possible to say from the error what actually went wrong hindering observability.
Edited by Sami Hiltunen