summaryrefslogtreecommitdiff
path: root/config/initializers/5_backend.rb
blob: 78910bb7675f5529b3f30eebf8182aaa30411150 (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

unless Rails.env.test?
  required_version = Gitlab::VersionInfo.parse(Gitlab::Shell.version_required)
  current_version = Gitlab::VersionInfo.parse(Gitlab::Shell.version)

  unless current_version.valid? && required_version <= current_version
    warn "WARNING: This version of GitLab depends on gitlab-shell #{required_version}, but you're running #{current_version}. Please update gitlab-shell."
  end
end