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 @@ -269,7 +269,7 @@ impl CredentialHelper {
269
269
270
270
if cmd. starts_with ( '!' ) {
271
271
self . commands . push ( cmd[ 1 ..] . to_string ( ) ) ;
272
- } else if cmd. starts_with ( '/' ) || cmd. starts_with ( '\\' ) || cmd [ 1 .. ] . starts_with ( ": \\ ") {
272
+ } else if cmd. contains ( "/" ) || cmd. contains ( " \\ ") {
273
273
self . commands . push ( cmd. to_string ( ) ) ;
274
274
} else {
275
275
self . commands . push ( format ! ( "git credential-{}" , cmd) ) ;
@@ -347,6 +347,7 @@ impl CredentialHelper {
347
347
. stdin ( Stdio :: piped ( ) )
348
348
. stdout ( Stdio :: piped ( ) )
349
349
. stderr ( Stdio :: piped ( ) ) ;
350
+ debug ! ( "executing credential helper {:?}" , c) ;
350
351
let mut p = match c. spawn ( ) {
351
352
Ok ( p) => p,
352
353
Err ( e) => {
@@ -360,6 +361,7 @@ impl CredentialHelper {
360
361
. stdin ( Stdio :: piped ( ) )
361
362
. stdout ( Stdio :: piped ( ) )
362
363
. stderr ( Stdio :: piped ( ) ) ;
364
+ debug ! ( "executing credential helper {:?}" , c) ;
363
365
match c. spawn ( ) {
364
366
Ok ( p) => p,
365
367
Err ( e) => {
You can’t perform that action at this time.
0 commit comments