fixup: Leverage git_error_set_after_callback_function

parent b14cc279
...@@ -987,13 +987,13 @@ static int rebase_commit__create( ...@@ -987,13 +987,13 @@ static int rebase_commit__create(
goto done; goto done;
git_error_clear(); git_error_clear();
if ((error = rebase->options.signing_cb(&commit_signature, &signature_field, error = git_error_set_after_callback_function(rebase->options.signing_cb(
git_buf_cstr(&commit_content), rebase->options.payload)) < 0 && &commit_signature, &signature_field, git_buf_cstr(&commit_content),
error != GIT_PASSTHROUGH) { rebase->options.payload), "commit signing_cb failed");
if (git_error_last() == NULL) if (error == GIT_PASSTHROUGH)
git_error_set(GIT_ERROR_CALLBACK, "commit signing_cb failed"); git_error_clear();
goto done; else if (error < 0)
} goto done;
if (error != GIT_PASSTHROUGH) { if (error != GIT_PASSTHROUGH) {
if (git_buf_is_allocated(&signature_field)) { 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