From 5acc6e69287c0861755b74a7b028c6f1802297e1 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 13 Jan 2025 20:46:39 +0800 Subject: [PATCH] enhance: double-click commit in histories of a bare repository --- src/ViewModels/Histories.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ViewModels/Histories.cs b/src/ViewModels/Histories.cs index b890b76e..ec880b24 100644 --- a/src/ViewModels/Histories.cs +++ b/src/ViewModels/Histories.cs @@ -213,7 +213,7 @@ namespace SourceGit.ViewModels { if (firstRemoteBranch != null) _repo.ShowPopup(new CreateBranch(_repo, firstRemoteBranch)); - else + else if (!_repo.IsBare) _repo.ShowPopup(new CheckoutCommit(_repo, commit)); } }