summaryrefslogtreecommitdiff
path: root/lib/gitlab/git
diff options
context:
space:
mode:
authorKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2018-01-19 07:29:33 +0100
committerKim "BKC" Carlbäcker <kim.carlbacker@gmail.com>2018-01-19 11:45:06 +0100
commite1925f6d680722cb630e18b63312d9643357c4a2 (patch)
treef889704e848aba13d3b81448ae24c1c5409ba727 /lib/gitlab/git
parent43538018261a5d1cccefecae895fad9e74adb1db (diff)
downloadgitlab-ce-e1925f6d680722cb630e18b63312d9643357c4a2.tar.gz
Move rugged-call from Project#write_repository_config to Git::Repository#write_config
Diffstat (limited to 'lib/gitlab/git')
-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..69368898cc1 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: nil)
+ rugged.config['gitlab.fullpath'] = full_path
+ end
+
def gitaly_repository
Gitlab::GitalyClient::Util.repository(@storage, @relative_path, @gl_repository)
end