mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 02:40:24 +08:00
fix: pressing Alt+Enter to commit and push in a repository that has no remotes will crash (#1205)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -1735,7 +1735,7 @@ namespace SourceGit.ViewModels
|
||||
CommitMessage = string.Empty;
|
||||
UseAmend = false;
|
||||
|
||||
if (autoPush)
|
||||
if (autoPush && _repo.Remotes.Count > 0)
|
||||
_repo.ShowAndStartPopup(new Push(_repo, null));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user