mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
Fix the crash caused by pushing without a branch
This commit is contained in:
parent
a382a3e564
commit
7ec21e2e53
1 changed files with 3 additions and 0 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue