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
8e7230fd
Commit
8e7230fd
authored
Oct 22, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into stable
parents
d1564370
4bc64b55
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletion
+18
-1
CHANGELOG
CHANGELOG
+3
-0
VERSION
VERSION
+1
-1
lib/gitlab/backend/grack_auth.rb
lib/gitlab/backend/grack_auth.rb
+14
-0
No files found.
CHANGELOG
View file @
8e7230fd
v 3.0.1
- Fixed git over http
v 3.0.0
v 3.0.0
- Projects groups
- Projects groups
- Web Editor
- Web Editor
...
...
VERSION
View file @
8e7230fd
3.0.
0
3.0.
1
lib/gitlab/backend/grack_auth.rb
View file @
8e7230fd
...
@@ -53,6 +53,10 @@ module Grack
...
@@ -53,6 +53,10 @@ module Grack
end
end
end
end
def
can?
(
object
,
action
,
subject
)
abilities
.
allowed?
(
object
,
action
,
subject
)
end
def
current_ref
def
current_ref
if
@env
[
"HTTP_CONTENT_ENCODING"
]
=~
/gzip/
if
@env
[
"HTTP_CONTENT_ENCODING"
]
=~
/gzip/
input
=
Zlib
::
GzipReader
.
new
(
@request
.
body
).
read
input
=
Zlib
::
GzipReader
.
new
(
@request
.
body
).
read
...
@@ -63,5 +67,15 @@ module Grack
...
@@ -63,5 +67,15 @@ module Grack
@request
.
body
.
rewind
@request
.
body
.
rewind
/refs\/heads\/([\w-]+)/
.
match
(
input
).
to_a
.
first
/refs\/heads\/([\w-]+)/
.
match
(
input
).
to_a
.
first
end
end
protected
def
abilities
@abilities
||=
begin
abilities
=
Six
.
new
abilities
<<
Ability
abilities
end
end
end
# Auth
end
# Auth
end
# Grack
end
# Grack
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