Developers can merge MR if target branch is not protected

This commit is contained in:
Dmitriy Zaporozhets 2013-02-27 20:20:31 +02:00
parent 33cd1ae9dc
commit 92039dd677
4 changed files with 20 additions and 7 deletions

View file

@ -19,6 +19,8 @@ class GitPushService
# Collect data for this git push
@push_data = post_receive_data(oldrev, newrev, ref)
create_push_event
project.ensure_satellite_exists
project.discover_default_branch
@ -27,8 +29,6 @@ class GitPushService
project.execute_hooks(@push_data.dup)
project.execute_services(@push_data.dup)
end
create_push_event
end
# This method provide a sample data