mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-16 07:55:00 +00:00
enhance: prevent to start bisect if it is already running
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
05757ebf40
commit
99b7208a54
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue