Skip to content

Commit

Permalink
fix libgit2 error throw. Fixes #42575 (#42576)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7a8a39b)
  • Loading branch information
IanButterworth authored and staticfloat committed Dec 22, 2022
1 parent 84651f7 commit 5d3e87c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/LibGit2/src/rebase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function commit(rb::GitRebase, sig::GitSignature)
oid_ptr, rb.ptr, C_NULL, sig.ptr, C_NULL, C_NULL)
catch err
# TODO: return current HEAD instead
err.code === Error.EAPPLIED && return nothing
err isa GitError && err.code === Error.EAPPLIED && return nothing
rethrow()
end
return oid_ptr[]
Expand Down

0 comments on commit 5d3e87c

Please sign in to comment.