Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
75ad9fff
Commit
75ad9fff
authored
Dec 14, 2015
by
Trey Davis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show git version on admin page
parent
2b4a3bc5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
CHANGELOG
CHANGELOG
+2
-0
app/views/admin/dashboard/index.html.haml
app/views/admin/dashboard/index.html.haml
+4
-0
lib/gitlab/git.rb
lib/gitlab/git.rb
+4
-0
No files found.
CHANGELOG
View file @
75ad9fff
...
@@ -55,6 +55,8 @@ v 8.3.0 (unreleased)
...
@@ -55,6 +55,8 @@ v 8.3.0 (unreleased)
- Do not show build status unless builds are enabled and `.gitlab-ci.yml` is present
- Do not show build status unless builds are enabled and `.gitlab-ci.yml` is present
- Persist runners registration token in database
- Persist runners registration token in database
- Fix online editor should not remove newlines at the end of the file
- 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
v 8.2.3
- Fix application settings cache not expiring after changes (Stan Hu)
- Fix application settings cache not expiring after changes (Stan Hu)
...
...
app/views/admin/dashboard/index.html.haml
View file @
75ad9fff
...
@@ -79,6 +79,10 @@
...
@@ -79,6 +79,10 @@
GitLab API
GitLab API
%span
.pull-right
%span
.pull-right
=
API
::
API
::
version
=
API
::
API
::
version
%p
Git
%span
.pull-right
=
Gitlab
::
Git
.
version
%p
%p
Ruby
Ruby
%span
.pull-right
%span
.pull-right
...
...
lib/gitlab/git.rb
View file @
75ad9fff
...
@@ -20,6 +20,10 @@ module Gitlab
...
@@ -20,6 +20,10 @@ module Gitlab
def
blank_ref?
(
ref
)
def
blank_ref?
(
ref
)
ref
==
BLANK_SHA
ref
==
BLANK_SHA
end
end
def
version
Gitlab
::
VersionInfo
.
parse
(
Gitlab
::
Popen
.
popen
(
%W(
#{
Gitlab
.
config
.
git
.
bin_path
}
--version)
).
first
)
end
end
end
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment