@@ -87,7 +87,7 @@ public void RunCommandLineWindow(NPath workingDirectory)
87
87
if ( environment . IsWindows )
88
88
{
89
89
startInfo . FileName = "cmd" ;
90
- gitEnvironment . Configure ( startInfo , workingDirectory ) ;
90
+ gitEnvironment . Configure ( startInfo , workingDirectory , environment . IsCustomGitExecutable ) ;
91
91
}
92
92
else if ( environment . IsMac )
93
93
{
@@ -97,7 +97,7 @@ public void RunCommandLineWindow(NPath workingDirectory)
97
97
var envVarFile = NPath . GetTempFilename ( ) ;
98
98
startInfo . FileName = "open" ;
99
99
startInfo . Arguments = $ "-a Terminal { envVarFile } ";
100
- gitEnvironment . Configure ( startInfo , workingDirectory ) ;
100
+ gitEnvironment . Configure ( startInfo , workingDirectory , environment . IsCustomGitExecutable ) ;
101
101
102
102
var envVars = startInfo . EnvironmentVariables ;
103
103
var scriptContents = new List < string > {
@@ -107,14 +107,17 @@ public void RunCommandLineWindow(NPath workingDirectory)
107
107
if ( ! environment . IsCustomGitExecutable ) {
108
108
scriptContents . Add ( $ "PATH=\" { envVars [ "GHU_FULLPATH" ] } \" /bin/bash") ;
109
109
}
110
+ else {
111
+ scriptContents . Add ( $ "/bin/bash") ;
112
+ }
110
113
111
114
environment . FileSystem . WriteAllLines ( envVarFile , scriptContents . ToArray ( ) ) ;
112
115
Mono . Unix . Native . Syscall . chmod ( envVarFile , ( Mono . Unix . Native . FilePermissions ) 493 ) ; // -rwxr-xr-x mode (0755)
113
116
}
114
117
else
115
118
{
116
119
startInfo . FileName = "sh" ;
117
- gitEnvironment . Configure ( startInfo , workingDirectory ) ;
120
+ gitEnvironment . Configure ( startInfo , workingDirectory , environment . IsCustomGitExecutable ) ;
118
121
}
119
122
120
123
Process . Start ( startInfo ) ;
0 commit comments