diff options
author | Douwe Maan <douwe@gitlab.com> | 2018-01-22 08:46:37 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2018-01-22 08:46:37 +0000 |
commit | 6a1da5673187617abb4c61afab998fc6fbfb3238 (patch) | |
tree | 67e50be5fb48109849a5db8883ff15c3e465f642 /lib | |
parent | bd5bb6ee9172206f4ba08ccf5fdf419544419d2d (diff) | |
parent | 31268b1b1a26e0042eedcfec8e42579077a145b6 (diff) | |
download | gitlab-ce-6a1da5673187617abb4c61afab998fc6fbfb3238.tar.gz |
Merge branch 'gitaly-write-repo-config-prep' into 'master'
Move rugged-call from Project#write_repository_config to Git::Repository#write_config
See merge request gitlab-org/gitlab-ce!16572
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/git/repository.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index b89a38d187e..455c9902a0a 100644 --- a/lib/gitlab/git/repository.rb +++ b/lib/gitlab/git/repository.rb @@ -1317,6 +1317,10 @@ module Gitlab end # rubocop:enable Metrics/ParameterLists + def write_config(full_path:) + rugged.config['gitlab.fullpath'] = full_path if full_path.present? + end + def gitaly_repository Gitlab::GitalyClient::Util.repository(@storage, @relative_path, @gl_repository) end |