Skip to content

Commit

Permalink
Merge branch 'hooks-migration' into 'master'
Browse files Browse the repository at this point in the history
Hooks migration

See merge request !1061
  • Loading branch information
dzaporozhets committed Sep 3, 2014
2 parents e8f1331 + 6f423b9 commit fb6cd42
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions db/migrate/20140903115954_migrate_to_new_shell.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class MigrateToNewShell < ActiveRecord::Migration
def change
gitlab_shell_path = Gitlab.config.gitlab_shell.path
if system("sh #{gitlab_shell_path}/support/rewrite-hooks.sh")
puts 'Repositories updated with new hooks'
else
raise 'Failed to rewrite gitlab-shell hooks in repositories'
end
end
end
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20140730111702) do
ActiveRecord::Schema.define(version: 20140903115954) do

# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
Expand Down

0 comments on commit fb6cd42

Please sign in to comment.