debian-mirror-gitlab/config/initializers/5_backend.rb

16 lines
634 B
Ruby
Raw Normal View History

2014-09-02 18:07:02 +05:30
# GIT over HTTP
2016-06-02 11:05:42 +05:30
require_dependency Rails.root.join('lib/gitlab/backend/grack_auth')
2014-09-02 18:07:02 +05:30
# GIT over SSH
2016-06-02 11:05:42 +05:30
require_dependency Rails.root.join('lib/gitlab/backend/shell')
2014-09-02 18:07:02 +05:30
# GitLab shell adapter
2016-06-02 11:05:42 +05:30
require_dependency Rails.root.join('lib/gitlab/backend/shell_adapter')
2015-04-26 12:48:37 +05:30
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