From 3517b358e65f8ec0a573b831418f10d5ef52d3c2 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Wed, 29 Apr 2020 21:30:38 -0500 Subject: [PATCH] cmd: dump: check value of skip-repository flag This is a boolean flag; simply checking if it's set isn't enough, we must check the value as well. --- cmd/dump.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/dump.go b/cmd/dump.go index d4461bea9313e..6766ccd362be9 100644 --- a/cmd/dump.go +++ b/cmd/dump.go @@ -95,7 +95,7 @@ func runDump(ctx *cli.Context) error { zip.Verbose = ctx.Bool("verbose") - if ctx.IsSet("skip-repository") { + if ctx.IsSet("skip-repository") && ctx.Bool("skip-repository") { log.Info("Skip dumping local repositories") } else { log.Info("Dumping local repositories...%s", setting.RepoRootPath)