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> {
103
103
let protocol = url. scheme ( ) ;
104
104
105
105
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) ;
107
108
108
109
let bash_args = vec ! [ "-c" . to_string( ) , cmd] ;
109
110
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 ( ) ?;
111
114
let output = String :: from_utf8_lossy ( res. stdout . as_slice ( ) ) ;
112
115
113
116
let mut res = BasicAuthCredential :: default ( ) ;
You can’t perform that action at this time.
0 commit comments