Skip to content

Commit

Permalink
cmd: dump: check value of skip-repository flag (#11254)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
3 people committed May 3, 2020
1 parent 4f9d59b commit a5018d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a5018d0

Please sign in to comment.