We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c22973 commit 871ba57Copy full SHA for 871ba57
src/main/groovy/com/cloudogu/gitops/features/Content.groovy
@@ -252,7 +252,10 @@ class Content extends Feature {
252
def git = cloneCommand.call()
253
254
if (ContentRepoType.MIRROR == repoConfig.type) {
255
- git.fetch().setRefSpecs("+refs/*:refs/*").call() // Fetch all branches and tags
+ def fetch = git.fetch()
256
+ // fetch also needs CredentialProvider, jgit behaviour.
257
+ fetch.setCredentialsProvider(new UsernamePasswordCredentialsProvider(repoConfig.username, repoConfig.password))
258
+ fetch.setRefSpecs("+refs/*:refs/*").call() // Fetch all branches and tags
259
}
260
261
if (repoConfig.ref) {
0 commit comments