allow http git repos connections while bootstrap
Updated misleading error message Signed-off-by: Vipul Newaskar <vipulnewaskar7@gmail.com>
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user