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)); } }