From d93763eccd13e1a9c83c4d6856a707171a378e91 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sat, 23 Dec 2023 22:08:31 +0100 Subject: [PATCH] fix: fix default for tags parameter --- cmd/wp-git-clone/flags.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/wp-git-clone/flags.go b/cmd/wp-git-clone/flags.go index 9ed2e8f..88d5c89 100644 --- a/cmd/wp-git-clone/flags.go +++ b/cmd/wp-git-clone/flags.go @@ -93,6 +93,7 @@ func settingsFlags(settings *plugin.Settings, category string) []cli.Flag { Name: "tags", Usage: "fetch git tags during clone", EnvVars: []string{"PLUGIN_TAGS"}, + Value: true, Destination: &settings.Tags, Category: category, }, @@ -145,7 +146,6 @@ func settingsFlags(settings *plugin.Settings, category string) []cli.Flag { Name: "partial", Usage: "enable/disable partial clone", EnvVars: []string{"PLUGIN_PARTIAL"}, - Value: false, Destination: &settings.Partial, Category: category, }, @@ -160,7 +160,6 @@ func settingsFlags(settings *plugin.Settings, category string) []cli.Flag { Name: "use-ssh", Usage: "using ssh for git clone", EnvVars: []string{"PLUGIN_USE_SSH"}, - Value: false, Destination: &settings.UseSSH, Category: category, },