diff --git a/models/repo.go b/models/repo.go index 873fd407fb9..c0e69b0e38f 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()