2021-02-03 16:09:17 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-06-19 17:06:17 -04:00
|
|
|
unless Rails.env.test?
|
|
|
|
required_version = Gitlab::VersionInfo.parse(Gitlab::Shell.version_required)
|
2020-03-16 08:09:12 -04:00
|
|
|
current_version = Gitlab::VersionInfo.parse(Gitlab::Shell.version)
|
2015-04-06 08:02:49 -04:00
|
|
|
|
2017-06-19 17:06:17 -04:00
|
|
|
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-06 08:02:49 -04:00
|
|
|
end
|