summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-07-30 23:19:36 -0700
committerStan Hu <stanhu@gmail.com>2018-07-30 23:19:36 -0700
commit7c88c4af0e31081b4137bc1b93e40d22ef6a93c6 (patch)
tree209c8b53ce315009e38e88e91607c21d877606e0 /lib
parent614206d63066eca08abe4a2f35dd0af4d85f5f35 (diff)
downloadgitlab-ce-7c88c4af0e31081b4137bc1b93e40d22ef6a93c6.tar.gz
No need to look up commit SHA since Bitbucket has a full-length SHA
Diffstat (limited to 'lib')
-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 0da572f24fc..a96dd260221 100644
--- a/lib/gitlab/bitbucket_server_import/importer.rb
+++ b/lib/gitlab/bitbucket_server_import/importer.rb
@@ -178,8 +178,6 @@ module Gitlab
source_branch_sha = pull_request.source_branch_sha
target_branch_sha = pull_request.target_branch_sha
- source_branch_sha = project.repository.commit(source_branch_sha)&.sha || source_branch_sha
- target_branch_sha = project.repository.commit(target_branch_sha)&.sha || target_branch_sha
author_id = gitlab_user_id(pull_request.author_email)
attributes = {