From 23f53c43ce9785f9974b81f3b34bb1f315b66f01 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 20 Aug 2013 17:44:15 +0300 Subject: [PATCH] Rename wiki repo if project repo was removed --- app/models/project.rb | 1 + 1 file changed, 1 insertion(+), 0 deletions(-) diff --git a/app/models/project.rb b/app/models/project.rb index de77bf1..d8fa6cb 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -427,6 +427,7 @@ class Project < ActiveRecord::Base # However we cannot allow rollback since we moved repository # So we basically we mute exceptions in next actions begin + gitlab_shell.mv_repository("#{old_path_with_namespace}.wiki", "#{new_path_with_namespace}.wiki") gitlab_shell.rm_satellites(old_path_with_namespace) send_move_instructions rescue -- libgit2 0.21.2