This commit is contained in:
1 parent
59cd8951f6
commit
b93ae852e0
10 files changed
+327
-36
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user