Commit 7ee13b62 authored by Valery Sizov's avatar Valery Sizov

ES: fixing exception on branch removing

parent 73825441
...@@ -17,6 +17,8 @@ module Elastic ...@@ -17,6 +17,8 @@ module Elastic
end end
def run(project_id, repo_path, from_sha = nil, to_sha = nil) def run(project_id, repo_path, from_sha = nil, to_sha = nil)
to_sha = nil if to_sha == Gitlab::Git::BLANK_SHA
vars = @vars.merge({ 'FROM_SHA' => from_sha, 'TO_SHA' => to_sha }) vars = @vars.merge({ 'FROM_SHA' => from_sha, 'TO_SHA' => to_sha })
command = ['bin/elastic_repo_indexer', project_id.to_s, repo_path] command = ['bin/elastic_repo_indexer', project_id.to_s, repo_path]
......
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