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
0a7dea29
Commit
0a7dea29
authored
Sep 03, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
/api/allowed use POST now
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
20c2e902
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
lib/api/internal.rb
lib/api/internal.rb
+1
-1
spec/requests/api/internal_spec.rb
spec/requests/api/internal_spec.rb
+3
-3
No files found.
lib/api/internal.rb
View file @
0a7dea29
...
...
@@ -12,7 +12,7 @@ module API
# ref - branch name
# forced_push - forced_push
#
ge
t
"/allowed"
do
pos
t
"/allowed"
do
# Check for *.wiki repositories.
# Strip out the .wiki from the pathname before finding the
# project. This applies the correct project permissions to
...
...
spec/requests/api/internal_spec.rb
View file @
0a7dea29
...
...
@@ -155,7 +155,7 @@ describe API::API, api: true do
end
def
pull
(
key
,
project
)
ge
t
(
pos
t
(
api
(
"/internal/allowed"
),
key_id:
key
.
id
,
project:
project
.
path_with_namespace
,
...
...
@@ -164,7 +164,7 @@ describe API::API, api: true do
end
def
push
(
key
,
project
)
ge
t
(
pos
t
(
api
(
"/internal/allowed"
),
changes:
'd14d6c0abdd253381df51a723d58691b2ee1ab08 570e7b2abdd848b95f2f578043fc23bd6f6fd24d refs/heads/master'
,
key_id:
key
.
id
,
...
...
@@ -174,7 +174,7 @@ describe API::API, api: true do
end
def
archive
(
key
,
project
)
ge
t
(
pos
t
(
api
(
"/internal/allowed"
),
ref:
'master'
,
key_id:
key
.
id
,
...
...
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