Fixed crash when resetting uncommited file
This commit is contained in:
parent
e7c36c6e90
commit
8c3e11ef38
@ -7,7 +7,7 @@ import org.eclipse.jgit.lib.Ref
|
||||
import javax.inject.Inject
|
||||
|
||||
class ResetEntryUseCase @Inject constructor() {
|
||||
suspend operator fun invoke(git: Git, statusEntry: StatusEntry, staged: Boolean): Ref =
|
||||
suspend operator fun invoke(git: Git, statusEntry: StatusEntry, staged: Boolean): Unit =
|
||||
withContext(Dispatchers.IO) {
|
||||
if (staged || statusEntry.statusType == StatusType.CONFLICTING) {
|
||||
git
|
||||
|
Loading…
Reference in New Issue
Block a user