diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-22 21:18:40 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 18:32:42 +0300 |
commit | 87c9df29ce8835da5d68dbf3e59674bd4524ee96 (patch) | |
tree | 0db8fb3fdda766f312441729d003b68ced7b2fa5 /lib/tasks/downtime_check.rake | |
parent | e2bbbb1a9aea72e4313cdc257460eb416fe8dc0b (diff) |
Don’t exclude some file in lib from rubocop
Diffstat (limited to 'lib/tasks/downtime_check.rake')
-rw-r--r-- | lib/tasks/downtime_check.rake | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/tasks/downtime_check.rake b/lib/tasks/downtime_check.rake index afe5d42910c..557f4fef10b 100644 --- a/lib/tasks/downtime_check.rake +++ b/lib/tasks/downtime_check.rake @@ -1,10 +1,10 @@ desc 'Checks if migrations in a branch require downtime' task downtime_check: :environment do - if defined?(Gitlab::License) - repo = 'gitlab-ee' - else - repo = 'gitlab-ce' - end + repo = if defined?(Gitlab::License) + 'gitlab-ee' + else + 'gitlab-ce' + end `git fetch https://gitlab.com/gitlab-org/#{repo}.git --depth 1` |