Commit 4ba65a4b authored by Lin Jen-Shin's avatar Lin Jen-Shin

Fix tests for the renaming

parent 6ffe11cb
...@@ -16,7 +16,7 @@ module Geo ...@@ -16,7 +16,7 @@ module Geo
project.expire_caches_before_rename(old_path_with_namespace) project.expire_caches_before_rename(old_path_with_namespace)
# Make sure target directory exists (used when transfering repositories) # Make sure target directory exists (used when transfering repositories)
project.ensure_storage_path_exist project.ensure_storage_path_exists
if gitlab_shell.mv_repository(project.repository_storage_path, if gitlab_shell.mv_repository(project.repository_storage_path,
old_path_with_namespace, new_path_with_namespace) old_path_with_namespace, new_path_with_namespace)
......
...@@ -5,7 +5,7 @@ class GeoRepositoryCreateWorker ...@@ -5,7 +5,7 @@ class GeoRepositoryCreateWorker
def perform(id) def perform(id)
project = Project.find(id) project = Project.find(id)
project.ensure_storage_path_exist project.ensure_storage_path_exists
project.create_repository unless project.repository_exists? || project.import? project.create_repository unless project.repository_exists? || project.import?
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