We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1519ef8 commit 08b205dCopy full SHA for 08b205d
asyncgit/src/sync/cred.rs
@@ -103,11 +103,14 @@ fn git_credential_fill(url: &str) -> Option<BasicAuthCredential> {
103
let protocol = url.scheme();
104
105
let cmd = format!("protocol={}\nhost={}\n", protocol, host);
106
- let cmd = format!("printf \"{}\" | git credential fill", cmd);
+ let cmd =
107
+ format!("printf \"{}\" | git credential-store get", cmd);
108
109
let bash_args = vec!["-c".to_string(), cmd];
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()?;
114
let output = String::from_utf8_lossy(res.stdout.as_slice());
115
116
let mut res = BasicAuthCredential::default();
0 commit comments