Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'workhorse/main.go')
-rw-r--r--workhorse/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/workhorse/main.go b/workhorse/main.go
index 5743355594f..0c470d36e3e 100644
--- a/workhorse/main.go
+++ b/workhorse/main.go
@@ -72,7 +72,8 @@ type alreadyPrintedError struct{ error }
// of type alreadyPrintedError it has already been printed.
func buildConfig(arg0 string, args []string) (*bootConfig, *config.Config, error) {
boot := &bootConfig{}
- cfg := &config.Config{Version: Version}
+ cfg := config.NewDefaultConfig()
+ cfg.Version = Version
fset := flag.NewFlagSet(arg0, flag.ContinueOnError)
fset.Usage = func() {
fmt.Fprintf(fset.Output(), "Usage of %s:\n", arg0)