Skip to content

Commit 08b205d

Browse files
author
Stephan Dilly
committed
use get instead of fill
1 parent 1519ef8 commit 08b205d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

asyncgit/src/sync/cred.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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={}\nhost={}\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();

0 commit comments

Comments
 (0)