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
iv
gitlab-ce
Commits
2d65430c
Commit
2d65430c
authored
Nov 14, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'api_token_cast_5_4' of /home/git/repositories/gitlab/gitlabhq into 5-4-stable
parents
36dc6e6b
671cdc5c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
VERSION
VERSION
+1
-1
lib/api/helpers.rb
lib/api/helpers.rb
+2
-1
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+1
-1
No files found.
VERSION
View file @
2d65430c
5.4.
1
5.4.
2
lib/api/helpers.rb
View file @
2d65430c
module
API
module
API
module
APIHelpers
module
APIHelpers
def
current_user
def
current_user
@current_user
||=
User
.
find_by_authentication_token
(
params
[
:private_token
]
||
env
[
"HTTP_PRIVATE_TOKEN"
])
private_token
=
(
params
[
:private_token
]
||
env
[
"HTTP_PRIVATE_TOKEN"
]).
to_s
@current_user
||=
User
.
find_by_authentication_token
(
private_token
)
end
end
def
user_project
def
user_project
...
...
lib/tasks/gitlab/check.rake
View file @
2d65430c
...
@@ -657,7 +657,7 @@ namespace :gitlab do
...
@@ -657,7 +657,7 @@ namespace :gitlab do
end
end
def
check_gitlab_shell
def
check_gitlab_shell
required_version
=
Gitlab
::
VersionInfo
.
new
(
1
,
7
,
4
)
required_version
=
Gitlab
::
VersionInfo
.
new
(
1
,
7
,
8
)
current_version
=
Gitlab
::
VersionInfo
.
parse
(
gitlab_shell_version
)
current_version
=
Gitlab
::
VersionInfo
.
parse
(
gitlab_shell_version
)
print
"GitLab Shell version >=
#{
required_version
}
? ... "
print
"GitLab Shell version >=
#{
required_version
}
? ... "
...
...
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