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
e840f900
Commit
e840f900
authored
May 06, 2017
by
Oswaldo Ferreira
Committed by
Fatih Acet
May 08, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CE backport
parent
7d157a8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
app/controllers/projects/merge_requests_controller.rb
app/controllers/projects/merge_requests_controller.rb
+2
-6
No files found.
app/controllers/projects/merge_requests_controller.rb
View file @
e840f900
...
...
@@ -740,16 +740,12 @@ class Projects::MergeRequestsController < Projects::ApplicationController
return
:hook_validation_error
end
if
params
[
:sha
]
!=
@merge_request
.
diff_head_sha
return
:sha_mismatch
end
return
:sha_mismatch
if
params
[
:sha
]
!=
@merge_request
.
diff_head_sha
@merge_request
.
update
(
merge_error:
nil
,
squash:
merge_params
[
:squash
])
if
params
[
:merge_when_pipeline_succeeds
].
present?
unless
@merge_request
.
head_pipeline
return
:failed
end
return
:failed
unless
@merge_request
.
head_pipeline
if
@merge_request
.
head_pipeline
.
active?
MergeRequests
::
MergeWhenPipelineSucceedsService
...
...
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