Fixed reset on conflicted files

This commit is contained in:
Abdelilah El Aissaoui 2022-06-22 10:40:41 +02:00
parent ab8e8c7dbe
commit 1f889aca1c

View File

@ -216,7 +216,7 @@ class StatusManager @Inject constructor(
}
suspend fun reset(git: Git, statusEntry: StatusEntry, staged: Boolean) = withContext(Dispatchers.IO) {
if (staged) {
if (staged || statusEntry.statusType == StatusType.CONFLICTING) {
git
.reset()
.addPath(statusEntry.filePath)