Fix port overwrite on bootstrap

Avoid overwriting the repositoryURL.Host variable to include Git servers deployed on non-standard https ports

Co-authored-by: Sebastián Vargas <develolux@gmail.com.com>

Signed-off-by: Alby Hernández <me@achetronic.com>
pull/2216/head
Alby Hernández 4 years ago committed by Alby Hernández
parent e07558f5b7
commit dd632d7a51

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

Loading…
Cancel
Save