mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-08 00:37:27 +00:00
allow http git repos connections while bootstrap
Updated misleading error message Signed-off-by: Vipul Newaskar <vipulnewaskar7@gmail.com>
This commit is contained in:
parent
a55548de07
commit
0a30bc1024
1 changed files with 1 additions and 1 deletions
|
|
@ -273,7 +273,7 @@ func transportForURL(u *url.URL) (transport.AuthMethod, error) {
|
|||
switch u.Scheme {
|
||||
case "http":
|
||||
if !gitArgs.insecureHttpAllowed {
|
||||
return nil, fmt.Errorf("scheme http is not supported")
|
||||
return nil, fmt.Errorf("scheme http is insecure, pass --allow-insecure-http=true to allow it")
|
||||
}
|
||||
return &http.BasicAuth{
|
||||
Username: gitArgs.username,
|
||||
|
|
|
|||
Loading…
Reference in a new issue