mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 10:50:52 +08:00
fix<Remote>: fix crash when open add remote dialog
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user