From 042465c448e73bb46ce7d159723a7c4805dad062 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Mon, 8 Sep 2014 10:16:15 +0200 Subject: Use create-hooks instead of rewrite-hooks.sh The rewrite-hooks.sh script is a deprecated wrapper for gitlab-shell's create-hooks script. --- db/migrate/20140903115954_migrate_to_new_shell.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'db/migrate/20140903115954_migrate_to_new_shell.rb') diff --git a/db/migrate/20140903115954_migrate_to_new_shell.rb b/db/migrate/20140903115954_migrate_to_new_shell.rb index 69912887da8..2d832109513 100644 --- a/db/migrate/20140903115954_migrate_to_new_shell.rb +++ b/db/migrate/20140903115954_migrate_to_new_shell.rb @@ -1,7 +1,7 @@ class MigrateToNewShell < ActiveRecord::Migration def change gitlab_shell_path = Gitlab.config.gitlab_shell.path - if system("sh #{gitlab_shell_path}/support/rewrite-hooks.sh") + if system("#{gitlab_shell_path}/bin/create-hooks") puts 'Repositories updated with new hooks' else raise 'Failed to rewrite gitlab-shell hooks in repositories' -- cgit v1.2.1