Skip to content

Commit 99b7208

Browse files
committed
enhance: prevent to start bisect if it is already running
Signed-off-by: leo <longshuang@msn.cn>
1 parent 05757eb commit 99b7208

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Views/RepositoryToolbar.axaml.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ private void StartBisect(object sender, RoutedEventArgs e)
124124
{
125125
if (repo.LocalChangesCount > 0)
126126
App.RaiseException(repo.FullPath, "You have un-committed local changes. Please discard or stash them first.");
127+
else if (repo.IsBisectCommandRunning || repo.BisectState != Models.BisectState.None)
128+
App.RaiseException(repo.FullPath, "Bisect is running! Please abort it before starting a new one.");
127129
else
128130
repo.Bisect("start");
129131
}

0 commit comments

Comments
 (0)