diff options
author | Tyler Wanek <tylerw@axosoft.com> | 2019-02-20 09:02:02 -0700 |
---|---|---|
committer | Tyler Wanek <tylerw@axosoft.com> | 2019-02-20 09:02:02 -0700 |
commit | 372694fe20ae9cca953aa5c5ce2f2e2cfa5d16e7 (patch) | |
tree | 455c17fb4c7870c96dabb781e82f4e6d591f7f0e | |
parent | 0d06bf4852a3b943a40c6378f638b7f0bb8972b9 (diff) | |
download | libgit2-372694fe20ae9cca953aa5c5ce2f2e2cfa5d16e7.tar.gz |
Set git_error when signing_cb returns an error code
-rw-r--r-- | src/rebase.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rebase.c b/src/rebase.c index 10a4b80c0..e313db970 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)) { |