Commit 8a93590e authored by Changzheng Liu's avatar Changzheng Liu Committed by Bob Van Landuyt

Pass project full path to indexer

parent 7fb417cf
......@@ -73,9 +73,9 @@ module Gitlab
command =
if index_wiki?
[path_to_indexer, "--blob-type=wiki_blob", "--skip-commits", project.id.to_s, repository_path]
[path_to_indexer, "--blob-type=wiki_blob", "--skip-commits", "--project-path=#{project.full_path}", project.id.to_s, repository_path]
else
[path_to_indexer, project.id.to_s, repository_path]
[path_to_indexer, "--project-path=#{project.full_path}", project.id.to_s, repository_path]
end
output, status = Gitlab::Popen.popen(command, nil, vars)
......
......@@ -92,6 +92,7 @@ RSpec.describe Gitlab::Elastic::Indexer do
expect_popen.with(
[
TestEnv.indexer_bin_path,
"--project-path=#{project.full_path}",
project.id.to_s,
"#{project.repository.disk_path}.git"
],
......@@ -214,6 +215,7 @@ RSpec.describe Gitlab::Elastic::Indexer do
TestEnv.indexer_bin_path,
'--blob-type=wiki_blob',
'--skip-commits',
"--project-path=#{project.full_path}",
project.id.to_s,
"#{project.wiki.repository.disk_path}.git"
],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment