mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-23 20:47:25 -08:00
fix<Remote>: fix crash when open add remote dialog
This commit is contained in:
parent
94d97c36ea
commit
d5ff070505
1 changed files with 1 additions and 1 deletions
|
@ -28,7 +28,7 @@ namespace SourceGit.Views.Popups {
|
|||
InitializeComponent();
|
||||
|
||||
ruleName.Repo = repo;
|
||||
if (RemoteURL.StartsWith("git@")) {
|
||||
if (!string.IsNullOrEmpty(RemoteURL) && RemoteURL.StartsWith("git@")) {
|
||||
txtSSHKey.Text = new Commands.Config(repo.Path).Get($"remote.{remote.Name}.sshkey");
|
||||
} else {
|
||||
txtSSHKey.Text = "";
|
||||
|
|
Loading…
Reference in a new issue