File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -324,6 +324,8 @@ impl CredentialHelper {
324324 String :: from_utf8_lossy( & output. stderr) ) ;
325325 return ( None , None )
326326 }
327+ trace ! ( "credential helper stderr ---\n {}" ,
328+ String :: from_utf8_lossy( & output. stderr) ) ;
327329 self . parse_output ( output. stdout )
328330 }
329331
@@ -335,7 +337,13 @@ impl CredentialHelper {
335337 for line in output. split ( |t| * t == b'\n' ) {
336338 let mut parts = line. splitn ( 2 , |t| * t == b'=' ) ;
337339 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+ } ;
339347 let value = match String :: from_utf8 ( value. to_vec ( ) ) {
340348 Ok ( s) => s,
341349 Err ( ..) => continue ,
You can’t perform that action at this time.
0 commit comments