From dd632d7a51ce50391e947c85f02b5f7eba55f477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alby=20Hern=C3=A1ndez?= <61636487+achetronic@users.noreply.github.com> Date: Tue, 14 Dec 2021 12:26:50 +0000 Subject: [PATCH] Fix port overwrite on bootstrap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Avoid overwriting the repositoryURL.Host variable to include Git servers deployed on non-standard https ports Co-authored-by: Sebastián Vargas Signed-off-by: Alby Hernández --- cmd/flux/bootstrap_git.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/flux/bootstrap_git.go b/cmd/flux/bootstrap_git.go index 786a2692..d6e50317 100644 --- a/cmd/flux/bootstrap_git.go +++ b/cmd/flux/bootstrap_git.go @@ -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