1
0
mirror of synced 2026-02-06 19:05:55 +00:00

Merge pull request #3117 from carlosonunez-vmw/main

Maintain original scheme when using --token-auth
This commit is contained in:
Stefan Prodan
2022-09-28 10:51:06 +03:00
committed by GitHub

View File

@@ -192,7 +192,9 @@ func bootstrapGitCmdRun(cmd *cobra.Command, args []string) error {
// Configure repository URL to match auth config for sync.
repositoryURL.User = nil
repositoryURL.Scheme = "https"
if !gitArgs.insecureHttpAllowed {
repositoryURL.Scheme = "https"
}
} else {
secretOpts.PrivateKeyAlgorithm = sourcesecret.PrivateKeyAlgorithm(bootstrapArgs.keyAlgorithm)
secretOpts.Password = gitArgs.password