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
e2e2d682
Commit
e2e2d682
authored
Dec 02, 2016
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More conflicts resolving
parent
3b1fafd7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
14 deletions
+1
-14
lib/gitlab/git_access.rb
lib/gitlab/git_access.rb
+1
-5
spec/services/merge_requests/merge_service_spec.rb
spec/services/merge_requests/merge_service_spec.rb
+0
-3
spec/services/merge_requests/refresh_service_spec.rb
spec/services/merge_requests/refresh_service_spec.rb
+0
-6
No files found.
lib/gitlab/git_access.rb
View file @
e2e2d682
...
...
@@ -52,11 +52,7 @@ module Gitlab
def
download_access_check
if
user
user_download_access_check
<<<<<<<
HEAD
elsif
deploy_key
.
nil?
&&
geo_node_key
.
nil?
&&
!
Guest
.
can?
(
:download_code
,
project
)
=======
elsif
deploy_key
.
nil?
&&
!
guest_can_downlod_code?
>>>>>>>
14046
b9c734e5e6506d63276f39f3f9d770c3699
elsif
deploy_key
.
nil?
&&
geo_node_key
.
nil?
&&
!
guest_can_downlod_code?
raise
UnauthorizedError
,
ERROR_MESSAGES
[
:download
]
end
end
...
...
spec/services/merge_requests/merge_service_spec.rb
View file @
e2e2d682
...
...
@@ -35,7 +35,6 @@ describe MergeRequests::MergeService, services: true do
it
'creates system note about merge_request merge'
do
note
=
merge_request
.
notes
.
last
expect
(
note
.
note
).
to
include
'merged'
<<<<<<<
HEAD
end
end
...
...
@@ -52,8 +51,6 @@ describe MergeRequests::MergeService, services: true do
it
'returns the correct error message'
do
expect
(
merge_request
.
merge_error
).
to
include
(
'This merge request cannot be merged'
)
=======
>>>>>>>
14046
b9c734e5e6506d63276f39f3f9d770c3699
end
end
...
...
spec/services/merge_requests/refresh_service_spec.rb
View file @
e2e2d682
...
...
@@ -91,10 +91,7 @@ describe MergeRequests::RefreshService, services: true do
it
{
expect
(
@merge_request
.
approvals
).
not_to
be_empty
}
it
{
expect
(
@fork_merge_request
).
to
be_merged
}
it
{
expect
(
@fork_merge_request
.
notes
.
last
.
note
).
to
include
(
'merged'
)
}
<<<<<<<
HEAD
it
{
expect
(
@fork_merge_request
.
approvals
).
not_to
be_empty
}
=======
>>>>>>>
14046
b9c734e5e6506d63276f39f3f9d770c3699
it
{
expect
(
@build_failed_todo
).
to
be_done
}
it
{
expect
(
@fork_build_failed_todo
).
to
be_done
}
end
...
...
@@ -134,10 +131,7 @@ describe MergeRequests::RefreshService, services: true do
it
{
expect
(
@merge_request
.
notes
).
to
be_empty
}
it
{
expect
(
@merge_request
).
to
be_open
}
<<<<<<<
HEAD
it
{
expect
(
@merge_request
.
approvals
).
not_to
be_empty
}
=======
>>>>>>>
14046
b9c734e5e6506d63276f39f3f9d770c3699
it
{
expect
(
@fork_merge_request
.
notes
.
last
.
note
).
to
include
(
'added 28 commits'
)
}
it
{
expect
(
@fork_merge_request
).
to
be_open
}
it
{
expect
(
@build_failed_todo
).
to
be_pending
}
...
...
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