2019-02-20 16:56:19 +00:00
= form_for @application_setting, url: repository_admin_application_settings_path(anchor: 'js-repository-check-settings'), html: { class: 'fieldset-form' } do |f|
2018-03-30 08:26:04 +00:00
= form_errors(@application_setting)
%fieldset
.sub-section
%h4 Repository checks
2018-06-13 07:40:55 +00:00
.form-group
.form-check
= f.check_box :repository_checks_enabled, class: 'form-check-input'
= f.label :repository_checks_enabled, class: 'form-check-label' do
Enable Repository Checks
2018-04-11 18:26:37 +00:00
.form-text.text-muted
2018-06-13 07:40:55 +00:00
GitLab will periodically run
%a{ href: 'https://git-scm.com/docs/git-fsck', target: 'blank' } 'git fsck'
in all project and wiki repositories to look for silent disk corruption issues.
.form-group
.form-text.text-muted
If you got a lot of false alarms from repository checks you can choose to clear all repository check information from the database.
2020-08-10 09:09:54 +00:00
- clear_repository_checks_link = _('Clear all repository checks')
- clear_repository_checks_message = _('This will clear repository check states for ALL projects in the database. This cannot be undone. Are you sure?')
2020-10-09 12:09:07 +00:00
= link_to clear_repository_checks_link, clear_repository_check_states_admin_application_settings_path, data: { confirm: clear_repository_checks_message }, method: :put, class: "gl-button btn btn-sm btn-danger"
2018-03-30 08:26:04 +00:00
.sub-section
%h4 Housekeeping
2018-06-13 07:40:55 +00:00
.form-group
.form-check
= f.check_box :housekeeping_enabled, class: 'form-check-input'
= f.label :housekeeping_enabled, class: 'form-check-label' do
Enable automatic repository housekeeping (git repack, git gc)
2018-04-11 18:26:37 +00:00
.form-text.text-muted
2018-06-13 07:40:55 +00:00
If you keep automatic housekeeping disabled for a long time Git
repository access on your GitLab server will become slower and your
repositories will use more disk space. We recommend to always leave
this enabled.
.form-check
= f.check_box :housekeeping_bitmaps_enabled, class: 'form-check-input'
= f.label :housekeeping_bitmaps_enabled, class: 'form-check-label' do
Enable Git pack file bitmap creation
2018-04-11 18:26:37 +00:00
.form-text.text-muted
2018-06-13 07:40:55 +00:00
Creating pack file bitmaps makes housekeeping take a little longer but
bitmaps should accelerate 'git clone' performance.
.form-group
2018-07-19 22:11:31 +00:00
= f.label :housekeeping_incremental_repack_period, 'Incremental repack period', class: 'label-bold'
2018-06-13 07:40:55 +00:00
= f.number_field :housekeeping_incremental_repack_period, class: 'form-control'
.form-text.text-muted
Number of Git pushes after which an incremental 'git repack' is run.
.form-group
2018-07-19 22:11:31 +00:00
= f.label :housekeeping_full_repack_period, 'Full repack period', class: 'label-bold'
2018-06-13 07:40:55 +00:00
= f.number_field :housekeeping_full_repack_period, class: 'form-control'
.form-text.text-muted
Number of Git pushes after which a full 'git repack' is run.
.form-group
2018-07-19 22:11:31 +00:00
= f.label :housekeeping_gc_period, 'Git GC period', class: 'label-bold'
2018-06-13 07:40:55 +00:00
= f.number_field :housekeeping_gc_period, class: 'form-control'
.form-text.text-muted
Number of Git pushes after which 'git gc' is run.
2018-03-30 08:26:04 +00:00
2020-10-14 15:08:42 +00:00
= f.submit _('Save changes'), class: "gl-button btn btn-success"