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
dd96bc43
Commit
dd96bc43
authored
Nov 08, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflict in app/models/merge_request.rb
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
1b8e68e6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
11 deletions
+1
-11
app/models/merge_request.rb
app/models/merge_request.rb
+1
-5
spec/models/merge_request_spec.rb
spec/models/merge_request_spec.rb
+0
-6
No files found.
app/models/merge_request.rb
View file @
dd96bc43
...
...
@@ -3,11 +3,6 @@ class MergeRequest < ActiveRecord::Base
include
Issuable
include
Noteable
include
Referable
<<<<<<<
HEAD
include
Sortable
include
Elastic
::
MergeRequestsSearch
=======
>>>>>>>
upstream
/
master
include
IgnorableColumn
include
TimeTrackable
...
...
@@ -15,6 +10,7 @@ class MergeRequest < ActiveRecord::Base
:ref_fetched
include
::
EE
::
MergeRequest
include
Elastic
::
MergeRequestsSearch
belongs_to
:target_project
,
class_name:
"Project"
belongs_to
:source_project
,
class_name:
"Project"
...
...
spec/models/merge_request_spec.rb
View file @
dd96bc43
...
...
@@ -2198,7 +2198,6 @@ describe MergeRequest do
end
end
<<<<<<<
HEAD
describe
'#base_pipeline'
do
let!
(
:pipeline
)
{
create
(
:ci_empty_pipeline
,
project:
subject
.
project
,
sha:
subject
.
diff_base_sha
)
}
...
...
@@ -2243,14 +2242,9 @@ describe MergeRequest do
end
end
describe
'#fetch_ref'
do
it
'sets "ref_fetched" flag to true'
do
subject
.
update!
(
ref_fetched:
nil
)
=======
describe
'#fetch_ref!'
do
it
'fetches the ref correctly'
do
expect
{
subject
.
target_project
.
repository
.
delete_refs
(
subject
.
ref_path
)
}.
not_to
raise_error
>>>>>>>
upstream
/
master
subject
.
fetch_ref!
expect
(
subject
.
target_project
.
repository
.
ref_exists?
(
subject
.
ref_path
)).
to
be_truthy
...
...
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