diff options
author | Trey Davis <trey@pogoseat.com> | 2015-12-15 04:30:55 +0300 |
---|---|---|
committer | Trey Davis <trey@pogoseat.com> | 2015-12-15 19:02:19 +0300 |
commit | 75ad9fff4e1293776e077b402b7e0bfcff3391d0 (patch) | |
tree | 94afefa9ccbd676d6d344be58dc752db97db10f6 /lib/gitlab | |
parent | 2b4a3bc524c0db3f6e4e3d2b2f34ec29e358b240 (diff) |
Show git version on admin page
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/git.rb | 4 |
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 |