diff --git a/plugins/git4idea/src/git4idea/repo/GitRepositoryTagsHolderImpl.kt b/plugins/git4idea/src/git4idea/repo/GitRepositoryTagsHolderImpl.kt index e069ec5c2187..1f0fb6699c59 100644 --- a/plugins/git4idea/src/git4idea/repo/GitRepositoryTagsHolderImpl.kt +++ b/plugins/git4idea/src/git4idea/repo/GitRepositoryTagsHolderImpl.kt @@ -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) + } } }