Skip to content

Commit 372694f

Browse files
committed
Set git_error when signing_cb returns an error code
1 parent 0d06bf4 commit 372694f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rebase.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,8 +988,10 @@ static int rebase_commit__create(
988988

989989
if ((error = rebase->options.signing_cb(&commit_signature, &signature_field,
990990
git_buf_cstr(&commit_content), rebase->options.payload)) < 0 &&
991-
error != GIT_PASSTHROUGH)
991+
error != GIT_PASSTHROUGH) {
992+
git_error_set(error, "signing_cb failed");
992993
goto done;
994+
}
993995

994996
if (error != GIT_PASSTHROUGH) {
995997
if (git_buf_is_allocated(&signature_field)) {

0 commit comments

Comments
 (0)