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 <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>tags/v1.13.0-dev
zip.Verbose = ctx.Bool("verbose") | 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") | log.Info("Skip dumping local repositories") | ||||
} else { | } else { | ||||
log.Info("Dumping local repositories...%s", setting.RepoRootPath) | log.Info("Dumping local repositories...%s", setting.RepoRootPath) |