From 160889382773221bc7c75d463b4a5c2882570a82 Mon Sep 17 00:00:00 2001 From: Franciszek Walkowiak Date: Thu, 25 Jan 2024 16:46:20 +0100 Subject: [PATCH] Cleanup --- cmd/root.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index a20cb4c..c4eea3d 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -31,7 +31,6 @@ import ( var cfgFile string var logLevel string var workingDirectory string -var maxRetries int type RepositoryPair struct { Source Repository `mapstructure:"source"` @@ -122,10 +121,6 @@ func newRootCommand() { "Logging level (trace, debug, info, warn, error). ") rootCmd.PersistentFlags().StringVarP(&workingDirectory, "workingDirectory", "w", "/tmp/git-synchronizer", "Directory where synchronized repositories will be cloned.") - rootCmd.PersistentFlags().IntVarP(&maxRetries, "maxRetries", "r", 3, - "Maximum number of retries in case a failure happens while: cloning source repository, "+ - "getting branches and tags from remote, fetching branches from source repository, "+ - "or pushing refs to destination repository.") // Add version command. rootCmd.AddCommand(extension.NewVersionCobraCmd())