From 81a0b4f117a157d72dd5dffd1f7d9b25a5c1533a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alby=20Hern=C3=A1ndez?= Date: Fri, 17 Dec 2021 21:38:45 +0000 Subject: [PATCH] Avoid overwriting the repositoryURL.Host variable to include Git servers deployed on non-standard https ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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