Skip to content
Snippets Groups Projects

Fixed typo in gitlab.yml.example

Closed gitlab-qa-bot requested to merge github/fork/mlitwiniuk/patch-1 into master
1 file
+ 48
44
Compare changes
  • Side-by-side
  • Inline
+ 48
44
@@ -778,23 +778,25 @@ namespace :gitlab do
@@ -778,23 +778,25 @@ namespace :gitlab do
}
}
Project.find_each(batch_size: 100) do |project|
Project.find_each(batch_size: 100) do |project|
print "#{project.name_with_namespace.yellow} ... "
if project.repository
print "#{project.name_with_namespace.yellow} ... "
correct_options = options.map do |name, value|
run("git --git-dir=\"#{project.repository.path_to_repo}\" config --get #{name}").try(:chomp) == value
correct_options = options.map do |name, value|
end
run("git --git-dir=\"#{project.repository.path_to_repo}\" config --get #{name}").try(:chomp) == value
end
if correct_options.all?
puts "ok".green
if correct_options.all?
else
puts "ok".green
puts "wrong or missing".red
else
try_fixing_it(
puts "wrong or missing".red
sudo_gitlab("bundle exec rake gitlab:gitolite:update_repos")
try_fixing_it(
)
sudo_gitlab("bundle exec rake gitlab:gitolite:update_repos")
for_more_information(
)
"doc/raketasks/maintenance.md"
for_more_information(
)
"doc/raketasks/maintenance.md"
fix_and_rerun
)
 
fix_and_rerun
 
end
end
end
end
end
end
end
@@ -819,33 +821,35 @@ namespace :gitlab do
@@ -819,33 +821,35 @@ namespace :gitlab do
puts ""
puts ""
Project.find_each(batch_size: 100) do |project|
Project.find_each(batch_size: 100) do |project|
print "#{project.name_with_namespace.yellow} ... "
if project.repository
project_hook_file = File.join(project.repository.path_to_repo, "hooks", hook_file)
print "#{project.name_with_namespace.yellow} ... "
project_hook_file = File.join(project.repository.path_to_repo, "hooks", hook_file)
unless File.exists?(project_hook_file)
puts "missing".red
unless File.exists?(project_hook_file)
try_fixing_it(
puts "missing".red
"sudo -u #{gitolite_ssh_user} ln -sf #{gitolite_hook_file} #{project_hook_file}"
try_fixing_it(
)
"sudo -u #{gitolite_ssh_user} ln -sf #{gitolite_hook_file} #{project_hook_file}"
for_more_information(
)
"lib/support/rewrite-hooks.sh"
for_more_information(
)
"lib/support/rewrite-hooks.sh"
fix_and_rerun
)
next
fix_and_rerun
end
next
end
if File.lstat(project_hook_file).symlink? &&
File.realpath(project_hook_file) == File.realpath(gitolite_hook_file)
if File.lstat(project_hook_file).symlink? &&
puts "ok".green
File.realpath(project_hook_file) == File.realpath(gitolite_hook_file)
else
puts "ok".green
puts "not a link to Gitolite's hook".red
else
try_fixing_it(
puts "not a link to Gitolite's hook".red
"sudo -u #{gitolite_ssh_user} ln -sf #{gitolite_hook_file} #{project_hook_file}"
try_fixing_it(
)
"sudo -u #{gitolite_ssh_user} ln -sf #{gitolite_hook_file} #{project_hook_file}"
for_more_information(
)
"lib/support/rewrite-hooks.sh"
for_more_information(
)
"lib/support/rewrite-hooks.sh"
fix_and_rerun
)
 
fix_and_rerun
 
end
end
end
end
end
end
end
Loading