diff --git a/src/ViewModels/Repository.cs b/src/ViewModels/Repository.cs index 93f29c2a..e0fda542 100644 --- a/src/ViewModels/Repository.cs +++ b/src/ViewModels/Repository.cs @@ -385,7 +385,10 @@ namespace SourceGit.ViewModels } if (Branches.Find(x => x.IsCurrent) == null) + { App.RaiseException(_fullpath, "Can NOT found current branch!!!"); + return; + } PopupHost.ShowPopup(new Push(this, null)); }