diff options
Diffstat (limited to 'lib/tasks/downtime_check.rake')
-rw-r--r-- | lib/tasks/downtime_check.rake | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/tasks/downtime_check.rake b/lib/tasks/downtime_check.rake deleted file mode 100644 index 3428e3f8f53..00000000000 --- a/lib/tasks/downtime_check.rake +++ /dev/null @@ -1,14 +0,0 @@ -# frozen_string_literal: true - -desc 'Checks if migrations in a branch require downtime' -task downtime_check: :environment do - repo = if defined?(Gitlab::License) - 'gitlab' - else - 'gitlab-foss' - end - - `git fetch https://gitlab.com/gitlab-org/#{repo}.git --depth 1` - - Rake::Task['gitlab:db:downtime_check'].invoke('FETCH_HEAD') -end |