File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -103,11 +103,14 @@ fn git_credential_fill(url: &str) -> Option<BasicAuthCredential> {
103103 let protocol = url. scheme ( ) ;
104104
105105 let cmd = format ! ( "protocol={}\n host={}\n " , protocol, host) ;
106- let cmd = format ! ( "printf \" {}\" | git credential fill" , cmd) ;
106+ let cmd =
107+ format ! ( "printf \" {}\" | git credential-store get" , cmd) ;
107108
108109 let bash_args = vec ! [ "-c" . to_string( ) , cmd] ;
109110
110- let res = Command :: new ( "bash" ) . args ( bash_args) . output ( ) . ok ( ) ?;
111+ let res = Command :: new ( "bash" ) . args ( bash_args) . output ( ) ;
112+ log:: debug!( "out: {:?}" , res) ;
113+ let res = res. ok ( ) ?;
111114 let output = String :: from_utf8_lossy ( res. stdout . as_slice ( ) ) ;
112115
113116 let mut res = BasicAuthCredential :: default ( ) ;
You can’t perform that action at this time.
0 commit comments