diff --git a/config.toml.example b/config.toml.example index 0822e8ca1889febe453facb7555c2bfa70d367a2..b3cd6057e184dedc78e50de4cff546b3a8626e41 100644 --- a/config.toml.example +++ b/config.toml.example @@ -63,6 +63,9 @@ dir = "/home/git/gitaly/ruby" # # # Number of gitaly-ruby worker processes # num_workers = 2 +# +# # Override Linguist languages path +# linguist_languages_path = "" [gitlab-shell] # The directory where gitlab-shell is installed diff --git a/ruby/spec/integration_helper.rb b/ruby/spec/integration_helper.rb index 0186d051425b01f9669adacd4aca7720b0c28f2c..b4e118ff9cc8b874d479563e8c3af66fe58a632c 100644 --- a/ruby/spec/integration_helper.rb +++ b/ruby/spec/integration_helper.rb @@ -18,19 +18,24 @@ end def start_gitaly build_dir = File.expand_path('../../../_build', __FILE__) gitlab_shell_dir = File.join(TMP_DIR, 'gitlab-shell') + linguist_path = File.join( + Bundler.rubygems.find_name('github-linguist').first.full_gem_path, + "lib", "linguist", "languages.json" + ) FileUtils.mkdir_p([TMP_DIR, File.join(gitlab_shell_dir, 'hooks')]) config_toml = <<~CONFIG socket_path = "#{SOCKET_PATH}" bin_dir = "#{build_dir}/bin" - + [gitlab-shell] dir = "#{gitlab_shell_dir}" - + [gitaly-ruby] dir = "#{build_dir}/assembly/ruby" - + linguist_languages_path = "#{linguist_path}" + [[storage]] name = "#{DEFAULT_STORAGE_NAME}" path = "#{DEFAULT_STORAGE_DIR}"