Don't attempt to move if original path only contains periods.

This commit is contained in:
Douwe Maan
2015-04-24 14:49:23 +02:00
parent 4934bc0312
commit 2fd47a0e95
@@ -54,6 +54,9 @@ class RemovePeriodsAtEndsOfUsernames < ActiveRecord::Migration
end
changed_paths.each do |path_was, path|
# Don't attempt to move if original path only contains periods.
next if path_was =~ /\A\.+\z/
if gitlab_shell.mv_namespace(path_was, path)
# If repositories moved successfully we need to remove old satellites
# and send update instructions to users.