Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 5 commits into from
May 3, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
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.
  • Loading branch information
kevans91 committed Apr 30, 2020
commit 3517b358e65f8ec0a573b831418f10d5ef52d3c2
2 changes: 1 addition & 1 deletion cmd/dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down