mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-17 00:14:59 +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)
|
if (repo.LocalChangesCount > 0)
|
||||||
App.RaiseException(repo.FullPath, "You have un-committed local changes. Please discard or stash them first.");
|
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
|
else
|
||||||
repo.Bisect("start");
|
repo.Bisect("start");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue