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

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorJohn Cai <jcai@gitlab.com>2019-06-03 21:55:37 +0300
committerPaul Okstad <pokstad@gitlab.com>2019-06-03 21:55:37 +0300
commite6350c4974ee01b7d2cb22cd83149eaea99de59a (patch)
treeb9ae340f5d5913f8179100fccf63558556357872 /ruby
parent54ef71f10b68636e53d652c8a5feb9f3da09d253 (diff)
Enable splitIndex for repositories in GarbageCollect rpc
Diffstat (limited to 'ruby')
-rw-r--r--ruby/lib/gitlab/git/repository.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/ruby/lib/gitlab/git/repository.rb b/ruby/lib/gitlab/git/repository.rb
index a696a249b..b6203094e 100644
--- a/ruby/lib/gitlab/git/repository.rb
+++ b/ruby/lib/gitlab/git/repository.rb
@@ -878,6 +878,8 @@ module Gitlab
def with_worktree(worktree_path, branch, sparse_checkout_files: nil, env:)
base_args = %w[worktree add --detach]
+ run_git!(%w[config core.splitIndex true])
+
# Note that we _don't_ want to test for `.present?` here: If the caller
# passes an non nil empty value it means it still wants sparse checkout
# but just isn't interested in any file, perhaps because it wants to