mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
fix: ssh-askpass not working (#272)
This commit is contained in:
parent
d4b262248a
commit
e0319e3f9b
1 changed files with 7 additions and 2 deletions
|
@ -501,10 +501,15 @@ namespace SourceGit
|
||||||
private bool TryLaunchedAsAskpass(IClassicDesktopStyleApplicationLifetime desktop)
|
private bool TryLaunchedAsAskpass(IClassicDesktopStyleApplicationLifetime desktop)
|
||||||
{
|
{
|
||||||
var args = desktop.Args;
|
var args = desktop.Args;
|
||||||
if (args == null || args.Length != 1 || !args[0].StartsWith("Enter passphrase", StringComparison.Ordinal))
|
if (args == null || args.Length != 1)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
desktop.MainWindow = new Views.Askpass(args[0]);
|
var param = args[0];
|
||||||
|
if (!param.StartsWith("enter passphrase", StringComparison.OrdinalIgnoreCase) &&
|
||||||
|
!param.Contains(" password", StringComparison.OrdinalIgnoreCase))
|
||||||
|
return false;
|
||||||
|
|
||||||
|
desktop.MainWindow = new Views.Askpass(param);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue