Reload repositories after the disk path is changed

parent 300501c4
......@@ -1577,7 +1577,9 @@ class Project < ApplicationRecord
end
def wiki
@wiki ||= ProjectWiki.new(self, self.owner)
strong_memoize(:wiki) do
ProjectWiki.new(self, self.owner)
end
end
def jira_tracker_active?
......
......@@ -45,9 +45,11 @@ module Projects
def move_repositories
result = move_repository(old_disk_path, new_disk_path)
project.reload_repository!
if move_wiki
result &&= move_repository(old_wiki_disk_path, new_wiki_disk_path)
project.clear_memoization(:wiki)
end
result
......
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