enhance: double-click commit in histories of a bare repository

This commit is contained in:
leo 2025-01-13 20:46:39 +08:00
parent a112d212dc
commit 5acc6e6928
No known key found for this signature in database

View file

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