Skip to content

Commit ad8f10b

Browse files
committed
Add missing code checks to Error::raw_code()
These codes are both already handled by Error::code(), but because they weren't listed in Error::raw_code(), it would return -1, and so the paths in Error::code() for them would never be hit. This fixes the code of errors from Repository::merge_commits() with fail_on_conflict set for me.
1 parent 7bebf64 commit ad8f10b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/error.rs

+2
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ impl Error {
289289
GIT_PASSTHROUGH,
290290
GIT_ITEROVER,
291291
GIT_RETRY,
292+
GIT_EDIRECTORY,
293+
GIT_EMERGECONFLICT,
292294
GIT_EMISMATCH,
293295
GIT_EINDEXDIRTY,
294296
GIT_EAPPLYFAIL,

0 commit comments

Comments
 (0)