Commit ece30f53ee997ba6eb4d0205a82ba204e3a901e3

Authored by Riyad Preukschas
2 parents 2a390f5d a9e2fa4c

Merge branch 'stable'

Showing 1 changed file with 5 additions and 4 deletions   Show diff stats
lib/tasks/gitlab/check.rake
... ... @@ -53,14 +53,14 @@ namespace :gitlab do
53 53 end
54 54  
55 55 def check_database_is_not_sqlite
56   - print "Database is not SQLite ... "
  56 + print "Database is SQLite ... "
57 57  
58 58 database_config_file = Rails.root.join("config", "database.yml")
59 59  
60 60 unless File.read(database_config_file) =~ /sqlite/
61   - puts "yes".green
  61 + puts "no".green
62 62 else
63   - puts "no".red
  63 + puts "yes".red
64 64 for_more_information(
65 65 "https://github.com/gitlabhq/gitlabhq/wiki/Migrate-from-SQLite-to-MySQL",
66 66 see_database_guide
... ... @@ -189,6 +189,8 @@ namespace :gitlab do
189 189  
190 190 if project.satellite.exists?
191 191 puts "yes".green
  192 + elsif project.empty_repo?
  193 + puts "can't create, repository is empty".magenta
192 194 else
193 195 puts "no".red
194 196 try_fixing_it(
... ... @@ -503,7 +505,6 @@ namespace :gitlab do
503 505 puts "yes".green
504 506 else
505 507 puts "no".red
506   - puts "#{gitolite_config_path} is not writable".red
507 508 try_fixing_it(
508 509 "sudo chmod 750 #{gitolite_config_path}"
509 510 )
... ...