mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 11:44:59 +00: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:
parent
c231772298
commit
0e967ffc8e
1 changed files with 1 additions and 1 deletions
|
@ -1735,7 +1735,7 @@ namespace SourceGit.ViewModels
|
||||||
CommitMessage = string.Empty;
|
CommitMessage = string.Empty;
|
||||||
UseAmend = false;
|
UseAmend = false;
|
||||||
|
|
||||||
if (autoPush)
|
if (autoPush && _repo.Remotes.Count > 0)
|
||||||
_repo.ShowAndStartPopup(new Push(_repo, null));
|
_repo.ShowAndStartPopup(new Push(_repo, null));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue