From fb747f606239191b0ea62a397536c2da2998195f Mon Sep 17 00:00:00 2001 From: Lanre Adelowo Date: Sat, 9 Feb 2019 13:01:04 +0100 Subject: [PATCH] disable git fsck for mirrored repos by default --- models/repo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/repo.go b/models/repo.go index 873fd407fb931..c0e69b0e38f0f 100644 --- a/models/repo.go +++ b/models/repo.go @@ -1379,7 +1379,7 @@ func CreateRepository(doer, u *User, opts CreateRepoOptions) (_ *Repository, err LowerName: strings.ToLower(opts.Name), Description: opts.Description, IsPrivate: opts.IsPrivate, - IsFsckEnabled: true, + IsFsckEnabled: !opts.IsMirror, } sess := x.NewSession()