提交 9115a4f9 编写于 作者: G GitLab

Remove satellites when moving namespace

上级 b53ca0bc
......@@ -71,8 +71,15 @@ class Namespace < ActiveRecord::Base
if File.exists?(new_path)
raise "Already exists"
end
begin
begin
# Remove satellite when moving repo
if path_was.present?
satellites_path = File.join(Gitlab.config.satellites.path, path_was)
FileUtils.rm_r( satellites_path, force: true )
end
FileUtils.mv( old_path, new_path )
send_update_instructions
@require_update_gitolite = true
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册