File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -176,8 +176,10 @@ protected ProcessStartInfo CreateGitStartInfo(bool redirect)
176
176
// Force using this app as SSH askpass program
177
177
var selfExecFile = Process . GetCurrentProcess ( ) . MainModule ! . FileName ;
178
178
start . Environment . Add ( "SSH_ASKPASS" , selfExecFile ) ; // Can not use parameter here, because it invoked by SSH with `exec`
179
- start . Environment . Add ( "SSH_ASKPASS_REQUIRE" , "force " ) ;
179
+ start . Environment . Add ( "SSH_ASKPASS_REQUIRE" , "prefer " ) ;
180
180
start . Environment . Add ( "SOURCEGIT_LAUNCH_AS_ASKPASS" , "TRUE" ) ;
181
+ if ( ! OperatingSystem . IsLinux ( ) )
182
+ start . Environment . Add ( "DISPLAY" , "required" ) ;
181
183
182
184
// If an SSH private key was provided, sets the environment.
183
185
if ( ! start . Environment . ContainsKey ( "GIT_SSH_COMMAND" ) && ! string . IsNullOrEmpty ( SSHKey ) )
You can’t perform that action at this time.
0 commit comments