summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-25 18:34:50 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-09-25 18:34:50 +0300
commitb6adabb45da1413db2c9c6585ff69fa4e40d05fe (patch)
tree6c5e876c457924c294d36ae1520eaaf2e75c39af /lib/tasks
parent7bb03a536a33b4e61f75b62e060c4b174b798f69 (diff)
parent82f3446fde4c6c0507e1752152b9e3be68ae4aa8 (diff)
downloadgitlab-ce-b6adabb45da1413db2c9c6585ff69fa4e40d05fe.tar.gz
Merge branch '6-1-stable'
Conflicts: lib/tasks/gitlab/check.rake
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/check.rake29
1 files changed, 28 insertions, 1 deletions
diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake
index 72a6743ee72..346712e1321 100644
--- a/lib/tasks/gitlab/check.rake
+++ b/lib/tasks/gitlab/check.rake
@@ -22,6 +22,7 @@ namespace :gitlab do
check_tmp_writable
check_init_script_exists
check_init_script_up_to_date
+ check_projects_have_namespace
check_satellites_exist
check_redis_version
check_git_version
@@ -570,6 +571,32 @@ namespace :gitlab do
end
end
+ def check_projects_have_namespace
+ print "projects have namespace: ... "
+
+ unless Project.count > 0
+ puts "can't check, you have no projects".magenta
+ return
+ end
+ puts ""
+
+ Project.find_each(batch_size: 100) do |project|
+ print "#{project.name_with_namespace.yellow} ... "
+
+ if project.namespace
+ puts "yes".green
+ else
+ puts "no".red
+ try_fixing_it(
+ "Migrate global projects"
+ )
+ for_more_information(
+ "doc/update/5.4-to-6.0.md in section \"#global-projects\""
+ )
+ fix_and_rerun
+ end
+ end
+ end
# Helper methods
########################
@@ -677,7 +704,7 @@ namespace :gitlab do
end
def check_gitlab_shell
- required_version = Gitlab::VersionInfo.new(1, 7, 0)
+ required_version = Gitlab::VersionInfo.new(1, 7, 1)
current_version = Gitlab::VersionInfo.parse(gitlab_shell_version)
print "GitLab Shell version >= #{required_version} ? ... "