summaryrefslogtreecommitdiff
path: root/app/models/namespace.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-08-07 15:05:17 +0200
committerDouwe Maan <douwe@gitlab.com>2015-08-07 15:05:17 +0200
commitad55f0d6f9ec29026b36ee32ff5fc6081e3793de (patch)
treecd2b9919de1d5597922ac0ac1c2c3dc9a54a0ab0 /app/models/namespace.rb
parent8b6ae0104df7e053ff3ad06e089c96273854c4e3 (diff)
parent4b7c2f0b503eb7400cee4cd5011733d689393691 (diff)
downloadgitlab-ce-comment-updated-by.tar.gz
Merge branch 'master' into comment-updated-bycomment-updated-by
Diffstat (limited to 'app/models/namespace.rb')
-rw-r--r--app/models/namespace.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb
index 815672a1bf7..161a16ca61c 100644
--- a/app/models/namespace.rb
+++ b/app/models/namespace.rb
@@ -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.