Fix test failure
This commit is contained in:
parent
a2b8cf952a
commit
1e38283adb
|
@ -87,6 +87,8 @@ func (statusList *StatusList) ByIndex(index int) (StatusEntry, error) {
|
|||
}
|
||||
ptr := C.git_status_byindex(statusList.ptr, C.size_t(index))
|
||||
if ptr == nil {
|
||||
runtime.LockOSThread()
|
||||
defer runtime.UnlockOSThread()
|
||||
return StatusEntry{}, MakeGitError(C.int(ErrNotFound))
|
||||
}
|
||||
entry := statusEntryFromC(ptr)
|
||||
|
|
Loading…
Reference in New Issue