diff options
author | John Cai <jcai@gitlab.com> | 2019-06-03 21:55:37 +0300 |
---|---|---|
committer | Paul Okstad <pokstad@gitlab.com> | 2019-06-03 21:55:37 +0300 |
commit | e6350c4974ee01b7d2cb22cd83149eaea99de59a (patch) | |
tree | b9ae340f5d5913f8179100fccf63558556357872 /ruby | |
parent | 54ef71f10b68636e53d652c8a5feb9f3da09d253 (diff) |
Enable splitIndex for repositories in GarbageCollect rpc
Diffstat (limited to 'ruby')
-rw-r--r-- | ruby/lib/gitlab/git/repository.rb | 2 |
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 |