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
9a8e82d6
Commit
9a8e82d6
authored
Jun 07, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve controller conflicts
parent
08b73e4e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
36 deletions
+5
-36
app/controllers/concerns/lfs_request.rb
app/controllers/concerns/lfs_request.rb
+4
-6
app/controllers/projects/git_http_controller.rb
app/controllers/projects/git_http_controller.rb
+0
-14
app/controllers/projects/imports_controller.rb
app/controllers/projects/imports_controller.rb
+0
-6
app/controllers/projects/protected_refs_controller.rb
app/controllers/projects/protected_refs_controller.rb
+0
-4
app/controllers/sessions_controller.rb
app/controllers/sessions_controller.rb
+1
-6
No files found.
app/controllers/concerns/lfs_request.rb
View file @
9a8e82d6
...
...
@@ -108,7 +108,10 @@ module LfsRequest
@objects
||=
(
params
[
:objects
]
||
[]).
to_a
end
<<<<<<<
HEAD
def
has_authentication_ability?
(
capability
)
(
authentication_abilities
||
[]).
include?
(
capability
)
end
module
EE
def
lfs_forbidden!
raise
NotImplementedError
unless
defined?
(
super
)
...
...
@@ -144,9 +147,4 @@ module LfsRequest
end
prepend
EE
=======
def
has_authentication_ability?
(
capability
)
(
authentication_abilities
||
[]).
include?
(
capability
)
end
>>>>>>>
ce
/
master
end
app/controllers/projects/git_http_controller.rb
View file @
9a8e82d6
...
...
@@ -51,22 +51,8 @@ class Projects::GitHttpController < Projects::GitHttpClientController
render
plain:
exception
.
message
,
status: :forbidden
end
<<<<<<<
HEAD
def
render_denied
if
user
&&
can?
(
user
,
:read_project
,
project
)
render
plain:
access_denied_message
,
status: :forbidden
else
# Do not leak information about project existence
render_not_found
end
end
def
access_denied_message
access_check
.
message
||
'Access denied'
=======
def
render_404
(
exception
)
render
plain:
exception
.
message
,
status: :not_found
>>>>>>>
ce
/
master
end
def
access
...
...
app/controllers/projects/imports_controller.rb
View file @
9a8e82d6
...
...
@@ -11,13 +11,7 @@ class Projects::ImportsController < Projects::ApplicationController
end
def
create
<<<<<<<
HEAD
if
@project
.
update_attributes
(
import_params
)
=======
@project
.
import_url
=
params
[
:project
][
:import_url
]
if
@project
.
save
>>>>>>>
ce
/
master
@project
.
reload
.
import_schedule
end
...
...
app/controllers/projects/protected_refs_controller.rb
View file @
9a8e82d6
...
...
@@ -48,10 +48,6 @@ class Projects::ProtectedRefsController < Projects::ApplicationController
protected
def
access_level_attributes
<<<<<<<
HEAD
%i(access_level id user_id _destroy group_id)
=======
%i(access_level id)
>>>>>>>
ce
/
master
end
end
app/controllers/sessions_controller.rb
View file @
9a8e82d6
...
...
@@ -90,17 +90,12 @@ class SessionsController < Devise::SessionsController
# Prevent a 'you are already signed in' message directly after signing:
# we should never redirect to '/users/sign_in' after signing in successfully.
<<<<<<<
HEAD
if
redirect_uri
.
path
==
new_user_session_path
if
redirect_uri
.
path
!=
new_user_session_path
return
true
elsif
redirect_uri
.
host
==
Gitlab
.
config
.
gitlab
.
host
&&
redirect_uri
.
port
==
Gitlab
.
config
.
gitlab
.
port
redirect_to
=
redirect_uri
.
to_s
elsif
Gitlab
::
Geo
.
geo_node?
(
host:
redirect_uri
.
host
,
port:
redirect_uri
.
port
)
redirect_to
=
redirect_uri
.
to_s
=======
unless
URI
(
redirect_path
).
path
==
new_user_session_path
store_location_for
(
:redirect
,
redirect_path
)
>>>>>>>
ce
/
master
end
@redirect_to
=
redirect_to
...
...
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