BigW Consortium Gitlab

5_backend.rb 549 Bytes
Newer Older
1
# GIT over SSH
2
require_dependency Rails.root.join('lib/gitlab/backend/shell')
3 4

# GitLab shell adapter
5
require_dependency Rails.root.join('lib/gitlab/backend/shell_adapter')
6 7 8 9 10 11 12

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