Git - fix status bar icon for a detached commit (#172271)

This commit is contained in:
Ladislau Szomoru
2023-01-25 10:52:55 +01:00
committed by GitHub
parent 09e0ff2c07
commit 88df431511

View File

@@ -69,7 +69,7 @@ class CheckoutStatusBar {
}
// Branch
if (this.repository.HEAD.type !== RefType.Tag) {
if (this.repository.HEAD.type === RefType.Head && this.repository.HEAD.name) {
return this.repository.isBranchProtected() ? '$(lock)' : '$(git-branch)';
}