summaryrefslogtreecommitdiff
path: root/lib/gitlab/bitbucket_server_import
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-07-20 22:31:17 -0700
committerStan Hu <stanhu@gmail.com>2018-07-20 22:31:17 -0700
commitf94b52256d1bedfe6b01ef31f0bed0615b10d918 (patch)
treee1f88538f0ea9505ac916a3ed7e9542f6b388de1 /lib/gitlab/bitbucket_server_import
parent3fd704b239cbf008f48ca3ca2e6119ca993794b7 (diff)
downloadgitlab-ce-f94b52256d1bedfe6b01ef31f0bed0615b10d918.tar.gz
Remove merge request deletion code
Diffstat (limited to 'lib/gitlab/bitbucket_server_import')
-rw-r--r--lib/gitlab/bitbucket_server_import/importer.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/gitlab/bitbucket_server_import/importer.rb b/lib/gitlab/bitbucket_server_import/importer.rb
index aa164f1a61a..f5febd266cb 100644
--- a/lib/gitlab/bitbucket_server_import/importer.rb
+++ b/lib/gitlab/bitbucket_server_import/importer.rb
@@ -182,8 +182,6 @@ module Gitlab
target_branch_sha = project.repository.commit(target_branch_sha)&.sha || target_branch_sha
author_id = gitlab_user_id(pull_request.author_email)
- project.merge_requests.find_by(iid: pull_request.iid)&.destroy
-
attributes = {
iid: pull_request.iid,
title: pull_request.title,