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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
b7297285
Commit
b7297285
authored
Feb 16, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uppercase Gitlab version and revision constants. check api return gitlab version now
parent
e65cc4f8
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
7 deletions
+10
-7
.gitignore
.gitignore
+1
-0
app/views/help/index.html.haml
app/views/help/index.html.haml
+2
-2
config/initializers/2_app.rb
config/initializers/2_app.rb
+2
-2
lib/api/internal.rb
lib/api/internal.rb
+3
-1
lib/tasks/gitlab/info.rake
lib/tasks/gitlab/info.rake
+2
-2
No files found.
.gitignore
View file @
b7297285
...
@@ -20,6 +20,7 @@ config/database.yml
...
@@ -20,6 +20,7 @@ config/database.yml
config/initializers/omniauth.rb
config/initializers/omniauth.rb
config/unicorn.rb
config/unicorn.rb
config/resque.yml
config/resque.yml
config/aws.yml
db/data.yml
db/data.yml
.idea
.idea
.DS_Store
.DS_Store
...
...
app/views/help/index.html.haml
View file @
b7297285
%h3
.page_title
%h3
.page_title
GITLAB
GITLAB
.pull-right
.pull-right
%span
=
Gitlab
::
V
ersion
%span
=
Gitlab
::
V
ERSION
%small
=
Gitlab
::
R
evision
%small
=
Gitlab
::
R
EVISION
%hr
%hr
%p
.lead
%p
.lead
Self Hosted Git Management
Self Hosted Git Management
...
...
config/initializers/2_app.rb
View file @
b7297285
module
Gitlab
module
Gitlab
V
ersion
=
File
.
read
(
Rails
.
root
.
join
(
"VERSION"
))
V
ERSION
=
File
.
read
(
Rails
.
root
.
join
(
"VERSION"
)).
strip
R
evision
=
`git log --pretty=format:'%h' -n 1`
R
EVISION
=
`git log --pretty=format:'%h' -n 1`
def
self
.
config
def
self
.
config
Settings
Settings
...
...
lib/api/internal.rb
View file @
b7297285
...
@@ -40,7 +40,9 @@ module Gitlab
...
@@ -40,7 +40,9 @@ module Gitlab
get
"/check"
do
get
"/check"
do
{
{
api_version:
'3'
api_version:
Gitlab
::
API
.
version
,
gitlab_version:
Gitlab
::
VERSION
,
gitlab_rev:
Gitlab
::
REVISION
,
}
}
end
end
end
end
...
...
lib/tasks/gitlab/info.rake
View file @
b7297285
...
@@ -40,8 +40,8 @@ namespace :gitlab do
...
@@ -40,8 +40,8 @@ namespace :gitlab do
puts
""
puts
""
puts
"GitLab information"
.
yellow
puts
"GitLab information"
.
yellow
puts
"Version:
\t
#{
Gitlab
::
V
ersion
}
"
puts
"Version:
\t
#{
Gitlab
::
V
ERSION
}
"
puts
"Revision:
\t
#{
Gitlab
::
R
evision
}
"
puts
"Revision:
\t
#{
Gitlab
::
R
EVISION
}
"
puts
"Directory:
\t
#{
Rails
.
root
}
"
puts
"Directory:
\t
#{
Rails
.
root
}
"
puts
"DB Adapter:
\t
#{
database_adapter
}
"
puts
"DB Adapter:
\t
#{
database_adapter
}
"
puts
"URL:
\t\t
#{
Gitlab
.
config
.
gitlab
.
url
}
"
puts
"URL:
\t\t
#{
Gitlab
.
config
.
gitlab
.
url
}
"
...
...
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