File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -372,6 +372,12 @@ impl CredentialHelper {
372
372
// If that fails then it's up to the user to put `sh` in path and make
373
373
// sure it works.
374
374
let mut c = Command :: new ( "sh" ) ;
375
+ #[ cfg( windows) ]
376
+ {
377
+ use std:: os:: windows:: process:: CommandExt ;
378
+ const CREATE_NO_WINDOW : u32 = 0x08000000 ;
379
+ c. creation_flags ( CREATE_NO_WINDOW ) ;
380
+ }
375
381
c. arg ( "-c" )
376
382
. arg ( & format ! ( "{} get" , cmd) )
377
383
. stdin ( Stdio :: piped ( ) )
@@ -384,6 +390,12 @@ impl CredentialHelper {
384
390
debug ! ( "`sh` failed to spawn: {}" , e) ;
385
391
let mut parts = cmd. split_whitespace ( ) ;
386
392
let mut c = Command :: new ( parts. next ( ) . unwrap ( ) ) ;
393
+ #[ cfg( windows) ]
394
+ {
395
+ use std:: os:: windows:: process:: CommandExt ;
396
+ const CREATE_NO_WINDOW : u32 = 0x08000000 ;
397
+ c. creation_flags ( CREATE_NO_WINDOW ) ;
398
+ }
387
399
for arg in parts {
388
400
c. arg ( arg) ;
389
401
}
You can’t perform that action at this time.
0 commit comments