From 73eb47c7520f8a1cd2f46ea46f6ac4615a6c3e39 Mon Sep 17 00:00:00 2001 From: yw-liu <43599588+yw-liu@users.noreply.github.com> Date: Fri, 17 Apr 2020 09:07:38 +0800 Subject: [PATCH] replace string literal with constant --- pkg/buildcontext/git.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/buildcontext/git.go b/pkg/buildcontext/git.go index 931a07089..7c2dddc6d 100644 --- a/pkg/buildcontext/git.go +++ b/pkg/buildcontext/git.go @@ -58,7 +58,7 @@ func (g *Git) UnpackTarFromBuildContext() (string, error) { func getGitPullMethod() string { gitPullMethod := os.Getenv(gitPullMethodEnvKey) if ok := supportedGitPullMethods[gitPullMethod]; !ok { - gitPullMethod = "https" + gitPullMethod = gitPullMethodHTTPS } return gitPullMethod }