diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-18 09:09:22 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-18 09:09:22 +0300 |
commit | 13ab0b63eb669c02845514e446b28f7463b271a3 (patch) | |
tree | 0fb2c908c792cca58ffe8e169046fe65c761c3c9 /lib/gitlab/setup_helper.rb | |
parent | f1e6e8d0daf795af777270cab39355b45794f528 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/setup_helper.rb')
-rw-r--r-- | lib/gitlab/setup_helper.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/gitlab/setup_helper.rb b/lib/gitlab/setup_helper.rb index 4f666302247..3ac20724403 100644 --- a/lib/gitlab/setup_helper.rb +++ b/lib/gitlab/setup_helper.rb @@ -100,6 +100,9 @@ module Gitlab socket_filename = options[:gitaly_socket] || "gitaly.socket" prometheus_listen_addr = options[:prometheus_listen_addr] + git_bin_path = File.expand_path('../gitaly/_build/deps/git/install/bin/git') + git_bin_path = nil unless File.exist?(git_bin_path) + config = { # Override the set gitaly_address since Praefect is in the loop socket_path: File.join(gitaly_dir, socket_filename), @@ -107,7 +110,10 @@ module Gitlab # Compared to production, tests run in constrained environments. This # number is meant to grow with the number of concurrent rails requests / # sidekiq jobs, and concurrency will be low anyway in test. - git: { catfile_cache_size: 5 }, + git: { + catfile_cache_size: 5, + bin_path: git_bin_path + }.compact, prometheus_listen_addr: prometheus_listen_addr }.compact |