Commit 372694fe20ae9cca953aa5c5ce2f2e2cfa5d16e7

Tyler Wanek 2019-02-20T09:02:02

Set git_error when signing_cb returns an error code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/src/rebase.c b/src/rebase.c
index 10a4b80..e313db9 100644
--- a/src/rebase.c
+++ b/src/rebase.c
@@ -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)) {