Commit 577bca03 authored by Nick Thomas's avatar Nick Thomas

Resolve merge conflicts

parent 8e80cc89
...@@ -226,11 +226,8 @@ Style/PredicateName: ...@@ -226,11 +226,8 @@ Style/PredicateName:
Style/PreferredHashMethods: Style/PreferredHashMethods:
Enabled: false Enabled: false
<<<<<<< HEAD
# Offense count: 64
=======
# Offense count: 62 # Offense count: 62
>>>>>>> ce/master
# Cop supports --auto-correct. # Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles. # Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: compact, exploded # SupportedStyles: compact, exploded
......
module RepositoryMirroring module RepositoryMirroring
<<<<<<< HEAD
def storage_path def storage_path
@project.repository_storage_path @project.repository_storage_path
end end
...@@ -12,8 +11,6 @@ module RepositoryMirroring ...@@ -12,8 +11,6 @@ module RepositoryMirroring
gitlab_shell.delete_remote_branches(storage_path, path_with_namespace, remote, branches) gitlab_shell.delete_remote_branches(storage_path, path_with_namespace, remote, branches)
end end
=======
>>>>>>> ce/master
def set_remote_as_mirror(name) def set_remote_as_mirror(name)
config = raw_repository.rugged.config config = raw_repository.rugged.config
...@@ -29,7 +26,6 @@ module RepositoryMirroring ...@@ -29,7 +26,6 @@ module RepositoryMirroring
fetch_remote(remote, forced: true) fetch_remote(remote, forced: true)
remove_remote(remote) remove_remote(remote)
end end
<<<<<<< HEAD
def remote_tags(remote) def remote_tags(remote)
gitlab_shell.list_remote_tags(storage_path, path_with_namespace, remote).map do |name, target| gitlab_shell.list_remote_tags(storage_path, path_with_namespace, remote).map do |name, target|
...@@ -52,6 +48,4 @@ module RepositoryMirroring ...@@ -52,6 +48,4 @@ module RepositoryMirroring
branches branches
end end
=======
>>>>>>> ce/master
end end
...@@ -3,11 +3,8 @@ class MergeRequest < ActiveRecord::Base ...@@ -3,11 +3,8 @@ class MergeRequest < ActiveRecord::Base
include Issuable include Issuable
include Referable include Referable
include Sortable include Sortable
<<<<<<< HEAD
include Elastic::MergeRequestsSearch include Elastic::MergeRequestsSearch
include Approvable include Approvable
=======
>>>>>>> ce/master
belongs_to :target_project, class_name: "Project" belongs_to :target_project, class_name: "Project"
belongs_to :source_project, class_name: "Project" belongs_to :source_project, class_name: "Project"
......
...@@ -4,13 +4,9 @@ require 'forwardable' ...@@ -4,13 +4,9 @@ require 'forwardable'
class Repository class Repository
include Gitlab::ShellAdapter include Gitlab::ShellAdapter
<<<<<<< HEAD
include Elastic::RepositoriesSearch include Elastic::RepositoriesSearch
include RepositoryMirroring include RepositoryMirroring
prepend EE::Repository prepend EE::Repository
=======
include RepositoryMirroring
>>>>>>> ce/master
attr_accessor :path_with_namespace, :project attr_accessor :path_with_namespace, :project
......
class SystemNoteMetadata < ActiveRecord::Base class SystemNoteMetadata < ActiveRecord::Base
ICON_TYPES = %w[ ICON_TYPES = %w[
<<<<<<< HEAD
commit merge confidentiality status label assignee cross_reference
title time_tracking branch milestone discussion task moved approvals
=======
commit merge confidential visible label assignee cross_reference commit merge confidential visible label assignee cross_reference
title time_tracking branch milestone discussion task moved opened closed merged title time_tracking branch milestone discussion task moved opened closed merged
>>>>>>> ce/master approvals
].freeze ].freeze
validates :note, presence: true validates :note, presence: true
......
...@@ -35,10 +35,7 @@ module Search ...@@ -35,10 +35,7 @@ module Search
def scope def scope
@scope ||= begin @scope ||= begin
allowed_scopes = %w[issues merge_requests milestones] allowed_scopes = %w[issues merge_requests milestones]
<<<<<<< HEAD
allowed_scopes += %w[blobs commits] if current_application_settings.elasticsearch_search? allowed_scopes += %w[blobs commits] if current_application_settings.elasticsearch_search?
=======
>>>>>>> ce/master
allowed_scopes.delete(params[:scope]) { 'projects' } allowed_scopes.delete(params[:scope]) { 'projects' }
end end
......
...@@ -4,17 +4,10 @@ module Db ...@@ -4,17 +4,10 @@ module Db
class AbuseReport class AbuseReport
def self.seed def self.seed
Gitlab::Seeder.quiet do Gitlab::Seeder.quiet do
<<<<<<< HEAD
(::AbuseReport.default_per_page + 3).times do
reported_user =
::User.create!(
username: FFaker::Internet.user_name,
=======
(::AbuseReport.default_per_page + 3).times do |i| (::AbuseReport.default_per_page + 3).times do |i|
reported_user = reported_user =
::User.create!( ::User.create!(
username: "reported_user_#{i}", username: "reported_user_#{i}",
>>>>>>> ce/master
name: FFaker::Name.name, name: FFaker::Name.name,
email: FFaker::Internet.email, email: FFaker::Internet.email,
confirmed_at: DateTime.now, confirmed_at: DateTime.now,
......
...@@ -88,7 +88,6 @@ module Gitlab ...@@ -88,7 +88,6 @@ module Gitlab
true true
end end
<<<<<<< HEAD
def list_remote_tags(storage, name, remote) def list_remote_tags(storage, name, remote)
output, status = Popen.popen([gitlab_shell_projects_path, 'list-remote-tags', storage, "#{name}.git", remote]) output, status = Popen.popen([gitlab_shell_projects_path, 'list-remote-tags', storage, "#{name}.git", remote])
tags_with_targets = [] tags_with_targets = []
...@@ -117,8 +116,6 @@ module Gitlab ...@@ -117,8 +116,6 @@ module Gitlab
Hash[*tags_with_targets] Hash[*tags_with_targets]
end end
=======
>>>>>>> ce/master
# Fetch remote for repository # Fetch remote for repository
# #
# name - project path with namespace # name - project path with namespace
......
...@@ -188,10 +188,7 @@ describe Notify do ...@@ -188,10 +188,7 @@ describe Notify do
let(:merge_author) { create(:user) } let(:merge_author) { create(:user) }
let(:merge_request) { create(:merge_request, author: current_user, assignee: assignee, source_project: project, target_project: project) } let(:merge_request) { create(:merge_request, author: current_user, assignee: assignee, source_project: project, target_project: project) }
let(:merge_request_with_description) { create(:merge_request, author: current_user, assignee: assignee, source_project: project, target_project: project, description: 'My awesome description') } let(:merge_request_with_description) { create(:merge_request, author: current_user, assignee: assignee, source_project: project, target_project: project, description: 'My awesome description') }
<<<<<<< HEAD
let(:merge_request_with_approver) { create(:merge_request_with_approver, author: current_user, assignee: assignee, source_project: project, target_project: project) } let(:merge_request_with_approver) { create(:merge_request_with_approver, author: current_user, assignee: assignee, source_project: project, target_project: project) }
=======
>>>>>>> ce/master
describe 'that are new' do describe 'that are new' do
subject { Notify.new_merge_request_email(merge_request.assignee_id, merge_request.id) } subject { Notify.new_merge_request_email(merge_request.assignee_id, merge_request.id) }
......
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