0
votes

I need to test such Git options as pack.windowMemory and pack.packSizeLimit and that is why I would like to add them to system config file of Git which is hosted by GitLab.

I know that in GitLab .gitconfig file resides in /var/opt/gitlab/.gitconfig but the file is not editable, instead gitlab.rb must be changed - but how? It is not precisely explained how to set mentioned options and some examples are weird, e.g. to set email one must pass user['git_user_email'].

1

1 Answers

3
votes

If installed via Omnibus you need to set these Values in the gitlab.rb. Using gitlab-ctl reconfigure will write these Values in your gitconfig. For your specific case you need to set this:

omnibus_gitconfig['system'] = { "pack" => ["windowMemory = N", "packSizeLimit = N"]}

For more information please refer to this link.