Commit 79fcd7b9 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Resolve conflicts in app/models/repository.rb

parent 10593a8a
......@@ -911,7 +911,6 @@ class Repository
def merged_to_root_ref?(branch_or_name, pre_loaded_merged_branches = nil)
branch = Gitlab::Git::Branch.find(self, branch_or_name)
<<<<<<< HEAD
if branch
root_ref_sha = commit(root_ref).sha
......@@ -923,26 +922,12 @@ class Repository
ancestor?(branch.target, root_ref_sha)
end
=======
if branch
root_ref_sha = commit(root_ref).sha
same_head = branch.target == root_ref_sha
merged =
if pre_loaded_merged_branches
pre_loaded_merged_branches.include?(branch.name)
else
ancestor?(branch.target, root_ref_sha)
end
>>>>>>> ce-com/master
!same_head && merged
else
nil
end
end
<<<<<<< HEAD
def fetch_upstream(url)
add_remote(Repository::MIRROR_REMOTE, url)
fetch_remote(Repository::MIRROR_REMOTE, ssh_auth: project&.import_data)
......@@ -991,8 +976,6 @@ class Repository
end
end
=======
>>>>>>> ce-com/master
delegate :merged_branch_names, to: :raw_repository
def merge_base(first_commit_id, second_commit_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