Skip to content

Commit 349feb9

Browse files
IanButterworthKristofferC
authored andcommitted
fix libgit2 error throw. Fixes #42575 (#42576)
(cherry picked from commit 7a8a39b)
1 parent a296c74 commit 349feb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/LibGit2/src/rebase.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function commit(rb::GitRebase, sig::GitSignature)
8383
oid_ptr, rb.ptr, C_NULL, sig.ptr, C_NULL, C_NULL)
8484
catch err
8585
# TODO: return current HEAD instead
86-
err.code === Error.EAPPLIED && return nothing
86+
err isa GitError && err.code === Error.EAPPLIED && return nothing
8787
rethrow()
8888
end
8989
return oid_ptr[]

0 commit comments

Comments
 (0)