summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-09-08 10:16:15 +0200
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-09-08 10:16:15 +0200
commit042465c448e73bb46ce7d159723a7c4805dad062 (patch)
treeb7e4045a9733ec60860a99a4e6a771eb8e06c833 /db
parent1535835d3e987d54931160c9371a6b927b2a8b91 (diff)
downloadgitlab-ce-042465c448e73bb46ce7d159723a7c4805dad062.tar.gz
Use create-hooks instead of rewrite-hooks.sh
The rewrite-hooks.sh script is a deprecated wrapper for gitlab-shell's create-hooks script.
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20140903115954_migrate_to_new_shell.rb2
1 files changed, 1 insertions, 1 deletions
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'