summaryrefslogtreecommitdiff
path: root/db/migrate/20140903115954_migrate_to_new_shell.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20140903115954_migrate_to_new_shell.rb')
-rw-r--r--db/migrate/20140903115954_migrate_to_new_shell.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/db/migrate/20140903115954_migrate_to_new_shell.rb b/db/migrate/20140903115954_migrate_to_new_shell.rb
index 2d832109513..54cbe48960a 100644
--- a/db/migrate/20140903115954_migrate_to_new_shell.rb
+++ b/db/migrate/20140903115954_migrate_to_new_shell.rb
@@ -1,5 +1,7 @@
class MigrateToNewShell < ActiveRecord::Migration
def change
+ return if Rails.env.test?
+
gitlab_shell_path = Gitlab.config.gitlab_shell.path
if system("#{gitlab_shell_path}/bin/create-hooks")
puts 'Repositories updated with new hooks'