File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -324,6 +324,8 @@ impl CredentialHelper {
324
324
String :: from_utf8_lossy( & output. stderr) ) ;
325
325
return ( None , None )
326
326
}
327
+ trace ! ( "credential helper stderr ---\n {}" ,
328
+ String :: from_utf8_lossy( & output. stderr) ) ;
327
329
self . parse_output ( output. stdout )
328
330
}
329
331
@@ -335,7 +337,13 @@ impl CredentialHelper {
335
337
for line in output. split ( |t| * t == b'\n' ) {
336
338
let mut parts = line. splitn ( 2 , |t| * t == b'=' ) ;
337
339
let key = parts. next ( ) . unwrap ( ) ;
338
- let value = match parts. next ( ) { Some ( s) => s, None => continue } ;
340
+ let value = match parts. next ( ) {
341
+ Some ( s) => s,
342
+ None => {
343
+ trace ! ( "ignoring output line: {}" , String :: from_utf8_lossy( line) ) ;
344
+ continue
345
+ }
346
+ } ;
339
347
let value = match String :: from_utf8 ( value. to_vec ( ) ) {
340
348
Ok ( s) => s,
341
349
Err ( ..) => continue ,
You can’t perform that action at this time.
0 commit comments