Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
3b8a6f43
Unverified
Commit
3b8a6f43
authored
Jul 02, 2019
by
Tyler Ang-Wanek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup: Leverage git_error_set_after_callback_function
parent
b14cc279
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/rebase.c
+7
-7
No files found.
src/rebase.c
View file @
3b8a6f43
...
...
@@ -987,13 +987,13 @@ static int rebase_commit__create(
goto
done
;
git_error_clear
();
if
((
error
=
rebase
->
options
.
signing_cb
(
&
commit_signature
,
&
signature_field
,
git_buf_cstr
(
&
commit_content
),
rebase
->
options
.
payload
))
<
0
&&
error
!=
GIT_PASSTHROUGH
)
{
if
(
git_error_last
()
==
NULL
)
git_error_set
(
GIT_ERROR_CALLBACK
,
"commit signing_cb failed"
);
goto
done
;
}
error
=
git_error_set_after_callback_function
(
rebase
->
options
.
signing_cb
(
&
commit_signature
,
&
signature_field
,
git_buf_cstr
(
&
commit_content
),
rebase
->
options
.
payload
),
"commit signing_cb failed"
);
if
(
error
==
GIT_PASSTHROUGH
)
git_error_clear
(
);
else
if
(
error
<
0
)
goto
done
;
if
(
error
!=
GIT_PASSTHROUGH
)
{
if
(
git_buf_is_allocated
(
&
signature_field
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment