From f2b1c06bb81f36d94f7c5442bce6875963f84977 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 14 Jan 2025 17:57:31 +0800 Subject: [PATCH] enhance: disable `checkout branch` via double-clicking branch tree node (#899) --- src/ViewModels/Repository.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ViewModels/Repository.cs b/src/ViewModels/Repository.cs index 8e1e5fb9..28f32da5 100644 --- a/src/ViewModels/Repository.cs +++ b/src/ViewModels/Repository.cs @@ -1062,6 +1062,9 @@ namespace SourceGit.ViewModels } } + if (IsBare) + return; + if (!CanCreatePopup()) return;