2013-02-04 13:07:56 +00:00
|
|
|
# GIT over SSH
|
2016-04-15 15:35:40 +00:00
|
|
|
require_dependency Rails.root.join('lib/gitlab/backend/shell')
|
2013-03-21 19:01:14 +00:00
|
|
|
|
|
|
|
# GitLab shell adapter
|
2016-04-15 15:35:40 +00:00
|
|
|
require_dependency Rails.root.join('lib/gitlab/backend/shell_adapter')
|
2015-04-06 12:02:49 +00:00
|
|
|
|
|
|
|
required_version = Gitlab::VersionInfo.parse(Gitlab::Shell.version_required)
|
|
|
|
current_version = Gitlab::VersionInfo.parse(Gitlab::Shell.new.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
|