summaryrefslogtreecommitdiff
path: root/app/services/merge_requests
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-15 15:45:57 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-15 15:45:57 +0200
commita87989fb7d0c4f05658ba29dec48ecefedf32334 (patch)
treec47c0ad8662105b0e711947c2833a1c45159cc49 /app/services/merge_requests
parent277f311f20739bd97f4059b51dfa1dbc38aa38e1 (diff)
downloadgitlab-ce-a87989fb7d0c4f05658ba29dec48ecefedf32334.tar.gz
Remove satellites
Diffstat (limited to 'app/services/merge_requests')
-rw-r--r--app/services/merge_requests/auto_merge_service.rb5
-rw-r--r--app/services/merge_requests/build_service.rb4
2 files changed, 2 insertions, 7 deletions
diff --git a/app/services/merge_requests/auto_merge_service.rb b/app/services/merge_requests/auto_merge_service.rb
index df793fc997d..1c41148d41d 100644
--- a/app/services/merge_requests/auto_merge_service.rb
+++ b/app/services/merge_requests/auto_merge_service.rb
@@ -1,7 +1,7 @@
module MergeRequests
# AutoMergeService class
#
- # Do git merge in satellite and in case of success
+ # Do git merge and in case of success
# mark merge request as merged and execute all hooks and notifications
# Called when you do merge via GitLab UI
class AutoMergeService < BaseMergeService
@@ -32,9 +32,8 @@ module MergeRequests
def merge!
if merge_request.for_fork?
- Gitlab::Satellite::MergeAction.new(current_user, merge_request).merge!(commit_message)
+ raise 'Implement me'
else
- # Merge local branches using rugged instead of satellites
if sha = commit
after_commit(sha, merge_request.target_branch)
end
diff --git a/app/services/merge_requests/build_service.rb b/app/services/merge_requests/build_service.rb
index 956480938c3..5ef1cd2caa0 100644
--- a/app/services/merge_requests/build_service.rb
+++ b/app/services/merge_requests/build_service.rb
@@ -40,7 +40,6 @@ module MergeRequests
merge_request.compare_diffs = diffs
elsif diffs == false
- # satellite timeout return false
merge_request.can_be_created = false
merge_request.compare_failed = true
end
@@ -59,9 +58,6 @@ module MergeRequests
end
merge_request
-
- rescue Gitlab::Satellite::BranchesWithoutParent
- return build_failed(merge_request, "Selected branches have no common commit so they cannot be merged.")
end
def build_failed(merge_request, message)