summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2013-10-07 11:27:38 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2013-10-07 11:27:38 +0200
commit99916fe159b40475f885513f62b2a8069d622e97 (patch)
tree1d40b35a36e743ccc931bc8037577850dfd6c068
parente8b9712d89f681049f8d537b8ef7f2a4295f102b (diff)
downloadgitlab-ce-99916fe159b40475f885513f62b2a8069d622e97.tar.gz
Add troubleshooting hints to update hook check
-rw-r--r--lib/tasks/gitlab/check.rake18
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake
index 6e2a59f62ac..99042981c26 100644
--- a/lib/tasks/gitlab/check.rake
+++ b/lib/tasks/gitlab/check.rake
@@ -393,14 +393,20 @@ namespace :gitlab do
hook_file = "update"
gitlab_shell_hooks_path = Gitlab.config.gitlab_shell.hooks_path
gitlab_shell_hook_file = File.join(gitlab_shell_hooks_path, hook_file)
- gitlab_shell_ssh_user = Gitlab.config.gitlab_shell.ssh_user
- unless File.exists?(gitlab_shell_hook_file)
- puts "can't check because of previous errors".magenta
- return
+ if File.exists?(gitlab_shell_hook_file)
+ puts "yes".green
+ else
+ puts "no".red
+ puts "Could not find #{gitlab_shell_hook_file}"
+ try_fixing_it(
+ 'Check the hooks_path in config/gitlab.yml',
+ 'Check your gitlab-shell installation'
+ )
+ for_more_information(
+ see_installation_guide_section "GitLab Shell"
+ )
end
-
- puts "yes".green
end
def check_repo_base_exists