Commit d044c142 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Ensure old namespace directory exists before moving it

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent ce47dd4b
...@@ -114,6 +114,9 @@ class Namespace < ActiveRecord::Base ...@@ -114,6 +114,9 @@ class Namespace < ActiveRecord::Base
end end
def move_dir def move_dir
# Ensure old directory exists before moving it
gitlab_shell.add_namespace(path_was)
if gitlab_shell.mv_namespace(path_was, path) if gitlab_shell.mv_namespace(path_was, path)
# If repositories moved successfully we need to # If repositories moved successfully we need to
# send update instructions to users. # send update instructions to users.
......
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