diff options
author | James Newton <james@Zaphyous.com> | 2013-08-27 16:15:32 -0500 |
---|---|---|
committer | James Newton <james@Zaphyous.com> | 2013-08-27 16:15:32 -0500 |
commit | 4994ebbb11d701a5831edce2ca450d0c1011c99e (patch) | |
tree | 16816073169ecfe26202463110107fac1e20a945 /lib | |
parent | 6b16f8a7a84a91bafac97e1e7e2390e32877eabb (diff) | |
download | gitlab-ce-4994ebbb11d701a5831edce2ca450d0c1011c99e.tar.gz |
update gitlab:check to look for update hook, not post-receive
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/gitlab/check.rake | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/tasks/gitlab/check.rake b/lib/tasks/gitlab/check.rake index be679dcd97e..74b3e7787e6 100644 --- a/lib/tasks/gitlab/check.rake +++ b/lib/tasks/gitlab/check.rake @@ -374,8 +374,8 @@ namespace :gitlab do check_repo_base_is_not_symlink check_repo_base_user_and_group check_repo_base_permissions - check_post_receive_hook_is_up_to_date - check_repos_post_receive_hooks_is_link + check_update_hook_is_up_to_date + check_repos_update_hooks_is_link finished_checking "GitLab Shell" end @@ -385,10 +385,10 @@ namespace :gitlab do ######################## - def check_post_receive_hook_is_up_to_date - print "post-receive hook up-to-date? ... " + def check_update_hook_is_up_to_date + print "update hook up-to-date? ... " - hook_file = "post-receive" + 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 @@ -494,10 +494,10 @@ namespace :gitlab do end end - def check_repos_post_receive_hooks_is_link - print "post-receive hooks in repos are links: ... " + def check_repos_update_hooks_is_link + print "update hooks in repos are links: ... " - hook_file = "post-receive" + 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 |