enhance: prevent to start bisect if it is already running

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-06-13 15:32:31 +08:00
parent 05757ebf40
commit 99b7208a54
No known key found for this signature in database

View file

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