diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-10-07 10:29:00 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-10-07 10:29:00 +0000 |
commit | 3db47d12f2687f674064567cb6c48c7df1c03288 (patch) | |
tree | 0acf1ae5782366d05df8bb7b88422779b17185c8 /lib | |
parent | 073c8a296668ab1e06b01ebf0a9e94786227eef4 (diff) | |
parent | 99916fe159b40475f885513f62b2a8069d622e97 (diff) | |
download | gitlab-ce-3db47d12f2687f674064567cb6c48c7df1c03288.tar.gz |
Merge branch 'check_hooks' of /home/git/repositories/gitlab/gitlabhq
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/gitlab/check.rake | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake index 531b01c4dd5..f52b98cb3ae 100644 --- a/lib/tasks/gitlab/check.rake +++ b/lib/tasks/gitlab/check.rake @@ -392,14 +392,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 |