From 8a7e8c470ee6cba6f738534ff32524bf6571fc0c Mon Sep 17 00:00:00 2001 From: Abdelilah El Aissaoui Date: Thu, 2 Dec 2021 22:45:26 +0100 Subject: [PATCH] Fixed clone not asking http credentials --- .../kotlin/app/git/RemoteOperationsManager.kt | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/main/kotlin/app/git/RemoteOperationsManager.kt b/src/main/kotlin/app/git/RemoteOperationsManager.kt index a43fc2c..b231ecd 100644 --- a/src/main/kotlin/app/git/RemoteOperationsManager.kt +++ b/src/main/kotlin/app/git/RemoteOperationsManager.kt @@ -85,22 +85,7 @@ class RemoteOperationsManager @Inject constructor( if (it is SshTransport) { it.sshSessionFactory = sessionManager.generateSshSessionFactory() } else if (it is HttpTransport) { - it.credentialsProvider = object : CredentialsProvider() { - override fun isInteractive(): Boolean { - return true - } - - override fun supports(vararg items: CredentialItem?): Boolean { - println(items) - - return true - } - - override fun get(uri: URIish?, vararg items: CredentialItem?): Boolean { - return true - } - - } + it.credentialsProvider = HttpCredentialsProvider() } } .call()