Fixed clone not asking http credentials
This commit is contained in:
parent
2b479d1d3f
commit
8a7e8c470e
1 changed files with 1 additions and 16 deletions
|
@ -85,22 +85,7 @@ class RemoteOperationsManager @Inject constructor(
|
||||||
if (it is SshTransport) {
|
if (it is SshTransport) {
|
||||||
it.sshSessionFactory = sessionManager.generateSshSessionFactory()
|
it.sshSessionFactory = sessionManager.generateSshSessionFactory()
|
||||||
} else if (it is HttpTransport) {
|
} else if (it is HttpTransport) {
|
||||||
it.credentialsProvider = object : CredentialsProvider() {
|
it.credentialsProvider = HttpCredentialsProvider()
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.call()
|
.call()
|
||||||
|
|
Loading…
Reference in a new issue