Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
walkowif committed Jan 25, 2024
1 parent 97bee7e commit 1608893
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import (
var cfgFile string
var logLevel string
var workingDirectory string
var maxRetries int

type RepositoryPair struct {
Source Repository `mapstructure:"source"`
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 1608893

Please sign in to comment.