Skip to content
代码片段 群组 项目
提交 2eb25004 编辑于 作者: Tiger Watson's avatar Tiger Watson
浏览文件

Merge branch 'sh-use-absolute-paths-gitaly-tests' into 'master'

Generate absolute paths for Gitaly test config files

See merge request gitlab-org/gitlab!53174
No related branches found
No related tags found
无相关合并请求
...@@ -121,7 +121,7 @@ def configuration_toml(gitaly_dir, storage_paths, options, gitaly_ruby: true) ...@@ -121,7 +121,7 @@ def configuration_toml(gitaly_dir, storage_paths, options, gitaly_ruby: true)
config[:'gitaly-ruby'] = { dir: File.join(gitaly_dir, 'ruby') } if gitaly_ruby config[:'gitaly-ruby'] = { dir: File.join(gitaly_dir, 'ruby') } if gitaly_ruby
config[:'gitlab-shell'] = { dir: Gitlab.config.gitlab_shell.path } config[:'gitlab-shell'] = { dir: Gitlab.config.gitlab_shell.path }
config[:bin_dir] = Gitlab.config.gitaly.client_path config[:bin_dir] = File.expand_path(Gitlab.config.gitaly.client_path)
config[:gitlab] = { url: Gitlab.config.gitlab.url } config[:gitlab] = { url: Gitlab.config.gitlab.url }
config[:logging] = { dir: Rails.root.join('log').to_s } config[:logging] = { dir: Rails.root.join('log').to_s }
......
...@@ -184,7 +184,7 @@ def gitaly_socket_path ...@@ -184,7 +184,7 @@ def gitaly_socket_path
end end
def gitaly_dir def gitaly_dir
File.dirname(gitaly_socket_path) File.dirname(File.expand_path(gitaly_socket_path))
end end
def start_gitaly(gitaly_dir) def start_gitaly(gitaly_dir)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册