2021-03-11 19:13:27 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
unless Rails.env.test?
|
|
|
|
required_version = Gitlab::VersionInfo.parse(Gitlab::Shell.version_required)
|
2020-04-08 14:13:33 +05:30
|
|
|
current_version = Gitlab::VersionInfo.parse(Gitlab::Shell.version)
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
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
|
2015-04-26 12:48:37 +05:30
|
|
|
end
|