Commit 62ad699b authored by Gabriel Mazetto's avatar Gabriel Mazetto

Fix repository initialization

parent 071b0ea7
...@@ -980,8 +980,8 @@ class Project < ActiveRecord::Base ...@@ -980,8 +980,8 @@ class Project < ActiveRecord::Base
# Expires various caches before a project is renamed. # Expires various caches before a project is renamed.
def expire_caches_before_rename(old_path) def expire_caches_before_rename(old_path)
# TODO: if we start using UUIDs for cache, we don't need to do this HACK anymore # TODO: if we start using UUIDs for cache, we don't need to do this HACK anymore
repo = Repository.new(old_path, old_path, self) repo = Repository.new(old_path, self)
wiki = Repository.new("#{old_path}.wiki", "#{old_path}.wiki", self) wiki = Repository.new("#{old_path}.wiki", self)
if repo.exists? if repo.exists?
repo.before_delete repo.before_delete
......
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