Set git_error when signing_cb returns an error code

parent 0d06bf48
......@@ -988,8 +988,10 @@ static int rebase_commit__create(
if ((error = rebase->options.signing_cb(&commit_signature, &signature_field,
git_buf_cstr(&commit_content), rebase->options.payload)) < 0 &&
error != GIT_PASSTHROUGH)
error != GIT_PASSTHROUGH) {
git_error_set(error, "signing_cb failed");
goto done;
}
if (error != GIT_PASSTHROUGH) {
if (git_buf_is_allocated(&signature_field)) {
......
Markdown is supported
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