FIx gitlab:env:info

This commit is contained in:
Dmitriy Zaporozhets 2013-02-11 10:02:52 +02:00
parent 7a88bf0978
commit 2d83e43db0

View file

@ -54,16 +54,14 @@ namespace :gitlab do
# check Gitolite version
gitolite_version_file = "#{Gitlab.config.gitolite.repos_path}/../gitolite/src/VERSION"
gitolite_version_file = "#{Gitlab.config.gitolite.repos_path}/../gitlab-shell/VERSION"
if File.readable?(gitolite_version_file)
gitolite_version = File.read(gitolite_version_file)
end
puts ""
puts "Gitolite information".yellow
puts "GitLab Shell".yellow
puts "Version:\t#{gitolite_version || "unknown".red}"
puts "Admin URI:\t#{Gitlab.config.gitolite.admin_uri}"
puts "Admin Key:\t#{Gitlab.config.gitolite.admin_key}"
puts "Repositories:\t#{Gitlab.config.gitolite.repos_path}"
puts "Hooks:\t\t#{Gitlab.config.gitolite.hooks_path}"
puts "Git:\t\t#{Gitlab.config.git.bin_path}"