Reuse native macOS Git credentials
Dependency security audit / rustsec (push) Has been cancelled

This commit is contained in:
hugo committed 2026-08-26 18:53:55 +02:00
1 parent 59cd8951f6
commit b93ae852e0
10 files changed
+327 -36

No files matched your search

+14
View File
@@ -455,6 +455,20 @@ impl<B: SecretStoreBackend, C: AuthenticationClock> GitCredentialProvider
.map_err(|_| GitError::CredentialsUnavailable)?;
self.shared.store.credential(server, application)
}
fn credential_for(&self, remote: &crate::config::GitRemote) -> Result<GitCredential, GitError> {
let _operation = self
.shared
.operation()
.map_err(|_| GitError::CredentialsUnavailable)?;
self.shared
.expire_if_needed()
.map_err(|_| GitError::CredentialsUnavailable)?;
self.shared
.with_active(self.generation, |_| ())
.map_err(|_| GitError::CredentialsUnavailable)?;
self.shared.store.credential_for(remote)
}
}
impl<B: SecretStoreBackend, C: AuthenticationClock> SshPassphraseProvider