Show git version on admin page
This commit is contained in:
parent
2b4a3bc524
commit
75ad9fff4e
3 changed files with 10 additions and 0 deletions
|
@ -55,6 +55,8 @@ v 8.3.0 (unreleased)
|
|||
- Do not show build status unless builds are enabled and `.gitlab-ci.yml` is present
|
||||
- Persist runners registration token in database
|
||||
- Fix online editor should not remove newlines at the end of the file
|
||||
- Expose Git's version in the admin area
|
||||
|
||||
|
||||
v 8.2.3
|
||||
- Fix application settings cache not expiring after changes (Stan Hu)
|
||||
|
|
|
@ -79,6 +79,10 @@
|
|||
GitLab API
|
||||
%span.pull-right
|
||||
= API::API::version
|
||||
%p
|
||||
Git
|
||||
%span.pull-right
|
||||
= Gitlab::Git.version
|
||||
%p
|
||||
Ruby
|
||||
%span.pull-right
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue