From 0a30bc1024f427e4688af45441bf1b27f3b87e55 Mon Sep 17 00:00:00 2001 From: Vipul Newaskar Date: Thu, 2 Jun 2022 10:27:58 +0530 Subject: [PATCH] allow http git repos connections while bootstrap Updated misleading error message Signed-off-by: Vipul Newaskar --- cmd/flux/bootstrap_git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/flux/bootstrap_git.go b/cmd/flux/bootstrap_git.go index 6f540fe5..27515775 100644 --- a/cmd/flux/bootstrap_git.go +++ b/cmd/flux/bootstrap_git.go @@ -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,