[git]: handle exception in tags holder (IJPL-236502)

(cherry picked from commit 59cdf131877ebdffe33f271e35324a97a89cbfcf)

IJ-MR-195474

GitOrigin-RevId: 24816f2d97e6a2e37d7ff52f4c7ebf77598c333a
This commit is contained in:
Dmitry Zhuravlev
2026-03-11 20:17:59 +00:00
committed by intellij-monorepo-bot
parent 10ffbf0ca9
commit d8cf1f45c9
@@ -1,4 +1,4 @@
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2026 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package git4idea.repo
import com.intellij.execution.process.ProcessOutputType
@@ -47,7 +47,12 @@ internal class GitRepositoryTagsHolderImpl(
init {
cs.launch(Dispatchers.IO) {
updateRequests.collectLatest {
_state.value = loadTagsFromGit()
try {
_state.value = loadTagsFromGit()
}
catch (e: VcsException) {
LOG.warn("Failed to load tags from Git", e)
}
}
}