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