debian-mirror-gitlab/app/views/admin/application_settings/_repository_check.html.haml

54 lines
3.4 KiB
Text
Raw Normal View History

2019-09-30 21:07:59 +05:30
= form_for @application_setting, url: repository_admin_application_settings_path(anchor: 'js-repository-check-settings'), html: { class: 'fieldset-form' } do |f|
2018-05-09 12:01:36 +05:30
= form_errors(@application_setting)
%fieldset
.sub-section
2021-04-29 21:17:54 +05:30
%h4= _("Repository checks")
2018-05-09 12:01:36 +05:30
.form-group
2018-11-08 19:23:39 +05:30
.form-check
= f.check_box :repository_checks_enabled, class: 'form-check-input'
= f.label :repository_checks_enabled, class: 'form-check-label' do
2021-04-29 21:17:54 +05:30
= _("Enable Repository Checks")
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2021-04-29 21:17:54 +05:30
- link_to_git_fsck = link_to('git fsck', 'https://git-scm.com/docs/git-fsck', target: '_blank')
= _("GitLab will periodically run %{link_to_git_fsck} in all project and wiki repositories to look for silent disk corruption issues.").html_safe % { link_to_git_fsck: link_to_git_fsck }
2018-05-09 12:01:36 +05:30
.form-group
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2021-04-29 21:17:54 +05:30
= _("If you got a lot of false alarms from repository checks you can choose to clear all repository check information from the database.")
2020-10-24 23:57:45 +05:30
- 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?')
2021-06-08 01:23:25 +05:30
= 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 gl-mt-3"
2018-05-09 12:01:36 +05:30
.sub-section
2021-04-29 21:17:54 +05:30
%h4= _("Housekeeping")
2018-05-09 12:01:36 +05:30
.form-group
2018-11-08 19:23:39 +05:30
.form-check
= f.check_box :housekeeping_enabled, class: 'form-check-input'
= f.label :housekeeping_enabled, class: 'form-check-label' do
2021-04-29 21:17:54 +05:30
= _("Enable automatic repository housekeeping (git repack, git gc)")
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2021-04-29 21:17:54 +05:30
= _("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.")
2018-11-08 19:23:39 +05:30
.form-check
= f.check_box :housekeeping_bitmaps_enabled, class: 'form-check-input'
= f.label :housekeeping_bitmaps_enabled, class: 'form-check-label' do
2021-04-29 21:17:54 +05:30
= _("Enable Git pack file bitmap creation")
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2021-04-29 21:17:54 +05:30
= _("Creating pack file bitmaps makes housekeeping take a little longer but bitmaps should accelerate 'git clone' performance.")
2018-05-09 12:01:36 +05:30
.form-group
2018-11-18 11:00:15 +05:30
= f.label :housekeeping_incremental_repack_period, 'Incremental repack period', class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.number_field :housekeeping_incremental_repack_period, class: 'form-control gl-form-input'
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2021-04-29 21:17:54 +05:30
= _("Number of Git pushes after which an incremental 'git repack' is run.")
2018-05-09 12:01:36 +05:30
.form-group
2018-11-18 11:00:15 +05:30
= f.label :housekeeping_full_repack_period, 'Full repack period', class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.number_field :housekeeping_full_repack_period, class: 'form-control gl-form-input'
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2021-04-29 21:17:54 +05:30
= _("Number of Git pushes after which a full 'git repack' is run.")
2018-05-09 12:01:36 +05:30
.form-group
2021-04-29 21:17:54 +05:30
= f.label :housekeeping_gc_period, _('Git GC period'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.number_field :housekeeping_gc_period, class: 'form-control gl-form-input'
2018-11-08 19:23:39 +05:30
.form-text.text-muted
2021-04-29 21:17:54 +05:30
= _("Number of Git pushes after which 'git gc' is run.")
2018-05-09 12:01:36 +05:30
2021-04-17 20:07:23 +05:30
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"