Skip to content

Commit

Permalink
disable git fsck for mirrored repos by default (#6018)
Browse files Browse the repository at this point in the history
  • Loading branch information
adelowo authored and zeripath committed Feb 9, 2019
1 parent d252d4e commit 3a33742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3a33742

Please sign in to comment.