mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-23 16:11:48 +00:00
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:
parent
e07558f5b7
commit
dd632d7a51
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.
|
// Configure repository URL to match auth config for sync.
|
||||||
repositoryURL.User = nil
|
repositoryURL.User = nil
|
||||||
repositoryURL.Scheme = "https"
|
repositoryURL.Scheme = "https"
|
||||||
repositoryURL.Host = repositoryURL.Hostname()
|
|
||||||
} else {
|
} else {
|
||||||
secretOpts.PrivateKeyAlgorithm = sourcesecret.PrivateKeyAlgorithm(bootstrapArgs.keyAlgorithm)
|
secretOpts.PrivateKeyAlgorithm = sourcesecret.PrivateKeyAlgorithm(bootstrapArgs.keyAlgorithm)
|
||||||
secretOpts.Password = gitArgs.password
|
secretOpts.Password = gitArgs.password
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue