Log mv_namespace parameters
This commit is contained in:
parent
9aded5c8d4
commit
4123a0ff75
1 changed files with 2 additions and 0 deletions
|
@ -103,6 +103,8 @@ class Namespace < ActiveRecord::Base
|
||||||
gitlab_shell.add_namespace(repository_storage_path, path_was)
|
gitlab_shell.add_namespace(repository_storage_path, path_was)
|
||||||
|
|
||||||
unless gitlab_shell.mv_namespace(repository_storage_path, path_was, path)
|
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
|
# if we cannot move namespace directory we should rollback
|
||||||
# db changes in order to prevent out of sync between db and fs
|
# db changes in order to prevent out of sync between db and fs
|
||||||
raise Exception.new('namespace directory cannot be moved')
|
raise Exception.new('namespace directory cannot be moved')
|
||||||
|
|
Loading…
Reference in a new issue