cmd: dump: check value of skip-repository flag (#11254)

This is a boolean flag; simply checking if it's set isn't enough, we must check the value as well.

Co-authored-by: Lunny Xiao <[email protected]>
Co-authored-by: techknowlogick <[email protected]>
This commit is contained in:
Kyle Evans
2020-05-03 00:57:45 -03:00
committed by GitHub
co-authored by Lunny Xiao techknowlogick
parent 4f9d59be17
commit a5018d099d
+1 -1
View File
@@ -99,7 +99,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)