diff options
author | Kyle Evans <kevans91@users.noreply.github.com> | 2020-05-02 22:57:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-03 00:57:45 -0300 |
commit | a5018d099d3de2141217043ebc32cfb4dbfa1dd3 (patch) | |
tree | 8475f4b57bd1d7a553f226ba2f39816ffc80a598 /cmd | |
parent | 4f9d59be17de6714b33e59d89a64c175aaed9381 (diff) | |
download | gitea-a5018d099d3de2141217043ebc32cfb4dbfa1dd3.tar.gz gitea-a5018d099d3de2141217043ebc32cfb4dbfa1dd3.zip |
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 <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/dump.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/dump.go b/cmd/dump.go index 1d71bc8379..774b1d5d50 100644 --- a/cmd/dump.go +++ b/cmd/dump.go @@ -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) |