summaryrefslogtreecommitdiff
path: root/lib/tasks
diff options
context:
space:
mode:
authorSemyon Pupkov <mail@semyonpupkov.com>2016-12-06 23:19:37 +0500
committerSemyon Pupkov <mail@semyonpupkov.com>2017-02-28 20:42:13 +0500
commite73b68a74217cf736dafd2ce1448292f3df5543d (patch)
treeb415253d4fc89c6863fc8e62d47bf38afc7144f5 /lib/tasks
parent58758bd5921a3f70918b23f90443812e6088a29c (diff)
downloadgitlab-ce-e73b68a74217cf736dafd2ce1448292f3df5543d.tar.gz
Add git version to gitlab:env:info
https://gitlab.com/gitlab-org/gitlab-ce/issues/25376
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/gitlab/info.rake3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tasks/gitlab/info.rake b/lib/tasks/gitlab/info.rake
index ae78fe64eb8..b8dd654b9a9 100644
--- a/lib/tasks/gitlab/info.rake
+++ b/lib/tasks/gitlab/info.rake
@@ -14,6 +14,8 @@ namespace :gitlab do
rake_version = run_and_match(%w(rake --version), /[\d\.]+/).try(:to_s)
# check redis version
redis_version = run_and_match(%w(redis-cli --version), /redis-cli (\d+\.\d+\.\d+)/).to_a
+ # check Git version
+ git_version = run_and_match([Gitlab.config.git.bin_path, '--version'], /git version ([\d\.]+)/).to_a
puts ""
puts "System information".color(:yellow)
@@ -26,6 +28,7 @@ namespace :gitlab do
puts "Bundler Version:#{bunder_version || "unknown".color(:red)}"
puts "Rake Version:\t#{rake_version || "unknown".color(:red)}"
puts "Redis Version:\t#{redis_version[1] || "unknown".color(:red)}"
+ puts "Git Version:\t#{git_version[1] || "unknown".color(:red)}"
puts "Sidekiq Version:#{Sidekiq::VERSION}"
# check database adapter