We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SSH_ASKPASS_REQUIRE=force
DISPLAY=required
1 parent d28bd92 commit 46690f4Copy full SHA for 46690f4
src/Commands/Command.cs
@@ -167,10 +167,8 @@ private ProcessStartInfo CreateGitStartInfo(bool redirect)
167
168
// Force using this app as SSH askpass program
169
var selfExecFile = Process.GetCurrentProcess().MainModule!.FileName;
170
- if (!OperatingSystem.IsLinux())
171
- start.Environment.Add("DISPLAY", "required");
172
start.Environment.Add("SSH_ASKPASS", selfExecFile); // Can not use parameter here, because it invoked by SSH with `exec`
173
- start.Environment.Add("SSH_ASKPASS_REQUIRE", "prefer");
+ start.Environment.Add("SSH_ASKPASS_REQUIRE", "force");
174
start.Environment.Add("SOURCEGIT_LAUNCH_AS_ASKPASS", "TRUE");
175
176
// If an SSH private key was provided, sets the environment.
0 commit comments