Commit 3943e632 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'mrchrisw/add-namespace-logging' into 'master'

Log mv_namespace parameters

[ci skip]

See merge request !7729
parents a7a9db80 4123a0ff
......@@ -104,6 +104,8 @@ class Namespace < ActiveRecord::Base
gitlab_shell.add_namespace(repository_storage_path, path_was)
unless gitlab_shell.mv_namespace(repository_storage_path, path_was, path)
Rails.logger.error "Exception moving path #{repository_storage_path} from #{path_was} to #{path}"
# if we cannot move namespace directory we should rollback
# db changes in order to prevent out of sync between db and fs
raise Exception.new('namespace directory cannot be moved')
......
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