Fix arguments alignment for Geo:RepositoryRenamedEventStore

parent 155af580
...@@ -38,8 +38,11 @@ module EE ...@@ -38,8 +38,11 @@ module EE
all_projects.each do |project| all_projects.each do |project|
old_path_with_namespace = File.join(full_path_was, project.path) old_path_with_namespace = File.join(full_path_was, project.path)
::Geo::RepositoryRenamedEventStore.new(project, ::Geo::RepositoryRenamedEventStore.new(
old_path: project.path, old_path_with_namespace: old_path_with_namespace).create project,
old_path: project.path,
old_path_with_namespace: old_path_with_namespace
).create
end end
end end
......
...@@ -433,8 +433,11 @@ module EE ...@@ -433,8 +433,11 @@ module EE
path_was = previous_changes['path'].first path_was = previous_changes['path'].first
old_path_with_namespace = File.join(namespace.full_path, path_was) old_path_with_namespace = File.join(namespace.full_path, path_was)
::Geo::RepositoryRenamedEventStore.new(self, ::Geo::RepositoryRenamedEventStore.new(
old_path: path_was, old_path_with_namespace: old_path_with_namespace).create self,
old_path: path_was,
old_path_with_namespace: old_path_with_namespace
).create
end end
private private
......
...@@ -8,8 +8,11 @@ module EE ...@@ -8,8 +8,11 @@ module EE
super super
::Geo::RepositoryRenamedEventStore.new(project, ::Geo::RepositoryRenamedEventStore.new(
old_path: project.path, old_path_with_namespace: @old_path).create project,
old_path: project.path,
old_path_with_namespace: @old_path
).create
end end
end end
end end
......
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