mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Git - fix status bar icon for a detached commit (#172271)
This commit is contained in:
@@ -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)';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user