Skip to content

Commit a5018d0

Browse files
kevans91lunnytechknowlogick
authored
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]>
1 parent 4f9d59b commit a5018d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/dump.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func runDump(ctx *cli.Context) error {
9999

100100
zip.Verbose = ctx.Bool("verbose")
101101

102-
if ctx.IsSet("skip-repository") {
102+
if ctx.IsSet("skip-repository") && ctx.Bool("skip-repository") {
103103
log.Info("Skip dumping local repositories")
104104
} else {
105105
log.Info("Dumping local repositories...%s", setting.RepoRootPath)

0 commit comments

Comments
 (0)