소스 검색

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>
tags/v1.13.0-dev
Kyle Evans 4 년 전
부모
커밋
a5018d099d
No account linked to committer's email address
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      cmd/dump.go

+ 1
- 1
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)

Loading…
취소
저장