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>
This commit is contained in:
Alby Hernández 2021-12-14 12:26:50 +00:00 committed by Alby Hernández
parent e07558f5b7
commit dd632d7a51

View file

@ -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