Skip to content
Snippets Groups Projects
Commit b53ca0bc authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix branch remove on automerge

parent 7e40684b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -31,7 +31,7 @@ module Gitlab
merge_repo.git.push({raise: true, timeout: true}, :origin, merge_request.target_branch)
 
# remove source branch
if merge_request.should_remove_source_branch && !project.repository.root_ref?(merge_request.source_branch)
if merge_request.should_remove_source_branch && !project.root_ref?(merge_request.source_branch)
# will raise CommandFailed when push fails
merge_repo.git.push({raise: true, timeout: true}, :origin, ":#{merge_request.source_branch}")
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment