Skip to content
Snippets Groups Projects
Commit 0a30bc10 authored by Vipul Newaskar's avatar Vipul Newaskar
Browse files

allow http git repos connections while bootstrap


Updated misleading error message

Signed-off-by: default avatarVipul Newaskar <vipulnewaskar7@gmail.com>
parent a55548de
No related branches found
No related tags found
No related merge requests found
...@@ -273,7 +273,7 @@ func transportForURL(u *url.URL) (transport.AuthMethod, error) { ...@@ -273,7 +273,7 @@ func transportForURL(u *url.URL) (transport.AuthMethod, error) {
switch u.Scheme { switch u.Scheme {
case "http": case "http":
if !gitArgs.insecureHttpAllowed { 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{ return &http.BasicAuth{
Username: gitArgs.username, Username: gitArgs.username,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment