gitlabhq/gitlabhq — Issue #477: Add support for git config as described by gitolite
Author: netdata
Created: 2012-02-27 10:46:26+00:00
State: open

In order to use gitlab in our corporation I need support for git config commands as described [here](https://github.com/sitaramc/gitolite/blob/pu/doc/gitolite.conf.mkd)

Here is a copy paste from that page:

Sometimes you want to specify `git config` settings for your repos.

For example, say you have a custom post-receive hook that sends an email when
a push happens, and this hook looks in the config for whom to send the email
to, etc.

You can set these git config values within a "repo" paragraph:

repo gitolite
config hooks.mailinglist = gitolite-commits@example.tld
config hooks.emailprefix = "[gitolite] "
config foo.bar = ""
config foo.baz =

The syntax is simple:

config sectionname.keyname = [optional value_string]

This does either a plain "git config section.key value" (for the first 3
examples above) or "git config --unset-all section.key" (for the last
example). Other forms of the `git config` command (`--add`, the
`value_regex`, etc) are not supported.

So please make it possible to add custom config options per project as they are required from some custom hooks to be triggered.