Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrey Davis <trey@pogoseat.com>2015-12-15 04:30:55 +0300
committerTrey Davis <trey@pogoseat.com>2015-12-15 19:02:19 +0300
commit75ad9fff4e1293776e077b402b7e0bfcff3391d0 (patch)
tree94afefa9ccbd676d6d344be58dc752db97db10f6 /lib/gitlab/git.rb
parent2b4a3bc524c0db3f6e4e3d2b2f34ec29e358b240 (diff)
Show git version on admin page
Diffstat (limited to 'lib/gitlab/git.rb')
-rw-r--r--lib/gitlab/git.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/git.rb b/lib/gitlab/git.rb
index 0c350d7c675..f065cc5e9e9 100644
--- a/lib/gitlab/git.rb
+++ b/lib/gitlab/git.rb
@@ -20,6 +20,10 @@ module Gitlab
def blank_ref?(ref)
ref == BLANK_SHA
end
+
+ def version
+ Gitlab::VersionInfo.parse(Gitlab::Popen.popen(%W(#{Gitlab.config.git.bin_path} --version)).first)
+ end
end
end
end