From 99b7208a5425c7b5a503dbce258323e22ef8af5f Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 13 Jun 2025 15:32:31 +0800 Subject: [PATCH] enhance: prevent to start bisect if it is already running Signed-off-by: leo --- src/Views/RepositoryToolbar.axaml.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Views/RepositoryToolbar.axaml.cs b/src/Views/RepositoryToolbar.axaml.cs index aa81f858..cbd0041a 100644 --- a/src/Views/RepositoryToolbar.axaml.cs +++ b/src/Views/RepositoryToolbar.axaml.cs @@ -124,6 +124,8 @@ namespace SourceGit.Views { if (repo.LocalChangesCount > 0) App.RaiseException(repo.FullPath, "You have un-committed local changes. Please discard or stash them first."); + else if (repo.IsBisectCommandRunning || repo.BisectState != Models.BisectState.None) + App.RaiseException(repo.FullPath, "Bisect is running! Please abort it before starting a new one."); else repo.Bisect("start"); }