Skip to content

Commit 3a33742

Browse files
adelowozeripath
authored andcommitted
disable git fsck for mirrored repos by default (#6018)
1 parent d252d4e commit 3a33742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ func CreateRepository(doer, u *User, opts CreateRepoOptions) (_ *Repository, err
13791379
LowerName: strings.ToLower(opts.Name),
13801380
Description: opts.Description,
13811381
IsPrivate: opts.IsPrivate,
1382-
IsFsckEnabled: true,
1382+
IsFsckEnabled: !opts.IsMirror,
13831383
}
13841384

13851385
sess := x.NewSession()

0 commit comments

Comments
 (0)