0
0
mirror of https://github.com/thegeeklab/wp-git-clone.git synced 2024-11-22 00:10:39 +00:00

fix: fix default for tags parameter

This commit is contained in:
Robert Kaussow 2023-12-23 22:08:31 +01:00
parent 802772766b
commit d93763eccd
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -93,6 +93,7 @@ func settingsFlags(settings *plugin.Settings, category string) []cli.Flag {
Name: "tags", Name: "tags",
Usage: "fetch git tags during clone", Usage: "fetch git tags during clone",
EnvVars: []string{"PLUGIN_TAGS"}, EnvVars: []string{"PLUGIN_TAGS"},
Value: true,
Destination: &settings.Tags, Destination: &settings.Tags,
Category: category, Category: category,
}, },
@ -145,7 +146,6 @@ func settingsFlags(settings *plugin.Settings, category string) []cli.Flag {
Name: "partial", Name: "partial",
Usage: "enable/disable partial clone", Usage: "enable/disable partial clone",
EnvVars: []string{"PLUGIN_PARTIAL"}, EnvVars: []string{"PLUGIN_PARTIAL"},
Value: false,
Destination: &settings.Partial, Destination: &settings.Partial,
Category: category, Category: category,
}, },
@ -160,7 +160,6 @@ func settingsFlags(settings *plugin.Settings, category string) []cli.Flag {
Name: "use-ssh", Name: "use-ssh",
Usage: "using ssh for git clone", Usage: "using ssh for git clone",
EnvVars: []string{"PLUGIN_USE_SSH"}, EnvVars: []string{"PLUGIN_USE_SSH"},
Value: false,
Destination: &settings.UseSSH, Destination: &settings.UseSSH,
Category: category, Category: category,
}, },