mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-23 18:30:34 +08:00
Fix the crash caused by pushing without a branch
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user