Add support for git config as described by gitolite
Created by: netdata-be
In order to use gitlab in our corporation I need support for git config commands as described here
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 = [email protected]
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.