mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-22 07:31:47 +00:00
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:
parent
e07558f5b7
commit
81a0b4f117
1 changed files with 0 additions and 1 deletions
|
|
@ -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…
Reference in a new issue