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
f824edca
Commit
f824edca
authored
May 12, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Gitlab::Checks::ChangeAccess conflicts
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
1bac3670
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
8 deletions
+1
-8
lib/gitlab/checks/change_access.rb
lib/gitlab/checks/change_access.rb
+1
-8
No files found.
lib/gitlab/checks/change_access.rb
View file @
f824edca
module
Gitlab
module
Gitlab
module
Checks
module
Checks
class
ChangeAccess
class
ChangeAccess
<<<<<<<
HEAD
include
PathLocksHelper
include
PathLocksHelper
# protocol is currently used only in EE
# protocol is currently used only in EE
=======
>>>>>>>
upstream
/
master
attr_reader
:user_access
,
:project
,
:skip_authorization
,
:protocol
attr_reader
:user_access
,
:project
,
:skip_authorization
,
:protocol
def
initialize
(
def
initialize
(
...
@@ -23,13 +20,9 @@ module Gitlab
...
@@ -23,13 +20,9 @@ module Gitlab
end
end
def
exec
def
exec
<<<<<<<
HEAD
error
=
push_checks
||
tag_checks
||
protected_branch_checks
||
push_rule_check
=======
return
GitAccessStatus
.
new
(
true
)
if
skip_authorization
return
GitAccessStatus
.
new
(
true
)
if
skip_authorization
error
=
push_checks
||
branch_checks
||
tag_checks
error
=
push_checks
||
branch_checks
||
tag_checks
||
push_rule_check
>>>>>>>
upstream
/
master
if
error
if
error
GitAccessStatus
.
new
(
false
,
error
)
GitAccessStatus
.
new
(
false
,
error
)
...
...
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