0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-25 14:52:49 +01:00

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>
This commit is contained in:
Kyle Evans 2020-05-02 22:57:45 -05:00 committed by GitHub
parent 4f9d59be17
commit a5018d099d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)