diff options
author | Stan Hu <stanhu@gmail.com> | 2019-10-01 03:05:09 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-10-02 23:36:49 +0300 |
commit | 9a48afa0b08cb5b17a31e4bbe18730300a910ff3 (patch) | |
tree | 0dfe175e2533eeefbc71758b4fccbc6032fbabbf /changelogs | |
parent | b3294d44835329f7759f15c7a25834e6ca7260ca (diff) |
Support configurable Git config search path for Rugged
This commit adds an optional `git_config_search_path` parameter for
gitaly-ruby.
By default, Rugged searches inside `/etc/gitconfig` instead of
`/opt/gitlab/embedded/etc/gitconfig` for system-wide options unless the
`Rugged::Settings['search_path_system']` is set.
This means that important options such as `core.fsyncObjectFiles` are
not propagated to gitaly-ruby, which can result in data loss after
servers are rebooted.
The command-line `git` doesn't have this issue because it uses the
`prefix` compile-time option, but this isn't available in Rugged.
With this new parameter, package managers (e.g. Omnibus) can specify
where the system `gitconfig` file should be.
Closes https://gitlab.com/gitlab-org/gitaly/issues/2051
Diffstat (limited to 'changelogs')
-rw-r--r-- | changelogs/unreleased/sh-add-git-search-path.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/changelogs/unreleased/sh-add-git-search-path.yml b/changelogs/unreleased/sh-add-git-search-path.yml new file mode 100644 index 000000000..18f0f64c9 --- /dev/null +++ b/changelogs/unreleased/sh-add-git-search-path.yml @@ -0,0 +1,5 @@ +--- +title: Support configurable Git config search path for Rugged +merge_request: 1526 +author: +type: fixed |