Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-01-22 11:46:37 +0300
committerDouwe Maan <douwe@gitlab.com>2018-01-22 11:46:37 +0300
commit6a1da5673187617abb4c61afab998fc6fbfb3238 (patch)
tree67e50be5fb48109849a5db8883ff15c3e465f642 /lib
parentbd5bb6ee9172206f4ba08ccf5fdf419544419d2d (diff)
parent31268b1b1a26e0042eedcfec8e42579077a145b6 (diff)
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.rb4
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