mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 20:54:59 +00: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…
Add table
Add a link
Reference in a new issue