From 45f1a331cd42a6446e4f96b162a65bb98ec26082 Mon Sep 17 00:00:00 2001 From: stoneshi-yunify Date: Wed, 5 Feb 2025 10:42:45 +0800 Subject: [PATCH] tidy code Signed-off-by: stoneshi-yunify --- kubectl-plugin/app/update.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/kubectl-plugin/app/update.go b/kubectl-plugin/app/update.go index e1f06dd..c4eec61 100644 --- a/kubectl-plugin/app/update.go +++ b/kubectl-plugin/app/update.go @@ -104,7 +104,6 @@ func (o *updateOption) runE(cmd *cobra.Command, args []string) (err error) { err = fmt.Errorf("failed to clone git repository '%s', error is: %v", app.gitRepo, err) return } - fmt.Println("git-repo-dir: ", tempDir) // run kustomize command if err = updateKustomization(o, path.Join(tempDir, app.directory)); err != nil { @@ -209,7 +208,6 @@ func cloneGitRepo(app *application, auth transport.AuthMethod) (tempDir string, err = fmt.Errorf("failed to create a temp directory, error is %v", err) return } - if _, err = git.PlainClone(tempDir, false, &git.CloneOptions{ URL: app.gitRepo, ReferenceName: plumbing.ReferenceName(app.branch),