Skip to content
Snippets Groups Projects
Commit 2c46cf08 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

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


Ensure old namespace directory exists before moving it

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>

Fixes #983 

See merge request !1101
parents dcb0bf0d d044c142
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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.
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment