diff --git a/lib/src/git.rs b/lib/src/git.rs index 3136f6ced3..b0c127f843 100644 --- a/lib/src/git.rs +++ b/lib/src/git.rs @@ -487,6 +487,12 @@ fn create_remote_callbacks(progress_cb: Option<&mut dyn FnMut(&Progress)>) -> Re } } } + if allowed_types.contains(git2::CredentialType::USER_PASS_PLAINTEXT) { + let Ok(config) = git2::Config::open_default(); + if let Ok(cred) = git2::Cred::credential_helper(config, _url) { + return cred; + } + } git2::Cred::default() }); callbacks