mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
Merge pull request #153 from Hammerliu/fix_crash
Fix the crash caused by pushing without a branch
This commit is contained in:
commit
f4d379e3b8
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…
Add table
Add a link
Reference in a new issue