BigW Consortium Gitlab

Commit 2c46cf08 by Dmitriy Zaporozhets

Merge branch 'fix-namespace-move-dir' into 'master'

Ensure old namespace directory exists before moving it Signed-off-by: 's avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> Fixes #983 See merge request !1101
parents dcb0bf0d d044c142
......@@ -114,6 +114,9 @@ class Namespace < ActiveRecord::Base
end
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 repositories moved successfully we need to
# 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