Commit 44af80e2 authored by Nick Thomas's avatar Nick Thomas

Fix merge conflicts

parent d951d637
...@@ -3,12 +3,9 @@ ...@@ -3,12 +3,9 @@
/* global UsersSelect */ /* global UsersSelect */
/* global ZenMode */ /* global ZenMode */
/* global Autosave */ /* global Autosave */
<<<<<<< HEAD
/* global GroupsSelect */ /* global GroupsSelect */
=======
/* global dateFormat */ /* global dateFormat */
/* global Pikaday */ /* global Pikaday */
>>>>>>> ce/master
(function() { (function() {
var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; }; var bind = function(fn, me) { return function() { return fn.apply(me, arguments); }; };
......
...@@ -2,11 +2,7 @@ class Admin::DashboardController < Admin::ApplicationController ...@@ -2,11 +2,7 @@ class Admin::DashboardController < Admin::ApplicationController
def index def index
@projects = Project.with_route.limit(10) @projects = Project.with_route.limit(10)
@users = User.limit(10) @users = User.limit(10)
<<<<<<< HEAD
@groups = Group.limit(10)
@license = License.current
=======
@groups = Group.with_route.limit(10) @groups = Group.with_route.limit(10)
>>>>>>> ce/master @license = License.current
end end
end end
...@@ -178,21 +178,10 @@ class Namespace < ActiveRecord::Base ...@@ -178,21 +178,10 @@ class Namespace < ActiveRecord::Base
Gitlab.config.lfs.enabled Gitlab.config.lfs.enabled
end end
<<<<<<< HEAD
def actual_size_limit def actual_size_limit
current_application_settings.repository_size_limit current_application_settings.repository_size_limit
end end
def full_path
if parent
parent.full_path + '/' + path
else
path
end
end
=======
>>>>>>> ce/master
def shared_runners_enabled? def shared_runners_enabled?
projects.with_shared_runners.any? projects.with_shared_runners.any?
end end
......
...@@ -1594,10 +1594,6 @@ class Project < ActiveRecord::Base ...@@ -1594,10 +1594,6 @@ class Project < ActiveRecord::Base
current_application_settings.default_branch_protection == Gitlab::Access::PROTECTION_DEV_CAN_MERGE current_application_settings.default_branch_protection == Gitlab::Access::PROTECTION_DEV_CAN_MERGE
end end
<<<<<<< HEAD
def full_path_changed?
path_changed? || namespace_id_changed?
=======
# Similar to the normal callbacks that hook into the life cycle of an # Similar to the normal callbacks that hook into the life cycle of an
# Active Record object, you can also define callbacks that get triggered # Active Record object, you can also define callbacks that get triggered
# when you add an object to an association collection. If any of these # when you add an object to an association collection. If any of these
...@@ -1607,7 +1603,6 @@ class Project < ActiveRecord::Base ...@@ -1607,7 +1603,6 @@ class Project < ActiveRecord::Base
# than the number of permitted boards per project it won't fail. # than the number of permitted boards per project it won't fail.
def validate_board_limit(board) def validate_board_limit(board)
raise BoardLimitExceeded, 'Number of permitted boards exceeded' if boards.size >= NUMBER_OF_PERMITTED_BOARDS raise BoardLimitExceeded, 'Number of permitted boards exceeded' if boards.size >= NUMBER_OF_PERMITTED_BOARDS
>>>>>>> ce/master
end end
def update_project_statistics def update_project_statistics
......
...@@ -24,13 +24,10 @@ module API ...@@ -24,13 +24,10 @@ module API
optional :request_access_enabled, type: Boolean, desc: 'Allow users to request member access' optional :request_access_enabled, type: Boolean, desc: 'Allow users to request member access'
optional :only_allow_merge_if_build_succeeds, type: Boolean, desc: 'Only allow to merge if builds succeed' optional :only_allow_merge_if_build_succeeds, type: Boolean, desc: 'Only allow to merge if builds succeed'
optional :only_allow_merge_if_all_discussions_are_resolved, type: Boolean, desc: 'Only allow to merge if all discussions are resolved' optional :only_allow_merge_if_all_discussions_are_resolved, type: Boolean, desc: 'Only allow to merge if all discussions are resolved'
<<<<<<< HEAD
# EE-specific # EE-specific
optional :repository_storage, type: String, desc: 'Which storage shard the repository is on. Available only to admins' optional :repository_storage, type: String, desc: 'Which storage shard the repository is on. Available only to admins'
optional :approvals_before_merge, type: Integer, desc: 'How many approvers should approve merge request by default' optional :approvals_before_merge, type: Integer, desc: 'How many approvers should approve merge request by default'
=======
>>>>>>> ce/master
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment