From 99784d77978e7548f70fa8499c5c9931c507d6f4 Mon Sep 17 00:00:00 2001 From: Lin Jen-Shin Date: Wed, 24 Jan 2018 16:35:31 +0800 Subject: [PATCH] We need Rails in order to use Gitlab.config anyway --- bin/upgrade.rb | 2 +- lib/gitlab/upgrader.rb | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bin/upgrade.rb b/bin/upgrade.rb index a5caecf8526..ed628fa1d42 100755 --- a/bin/upgrade.rb +++ b/bin/upgrade.rb @@ -1,3 +1,3 @@ -require_relative "../lib/gitlab/upgrader" +require_relative '../config/environment' Gitlab::Upgrader.new.execute diff --git a/lib/gitlab/upgrader.rb b/lib/gitlab/upgrader.rb index 3b64cb32afa..d545f2f95f1 100644 --- a/lib/gitlab/upgrader.rb +++ b/lib/gitlab/upgrader.rb @@ -1,6 +1,3 @@ -require_relative "popen" -require_relative "version_info" - module Gitlab class Upgrader def execute