Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2016-12-06 18:12:11 +0300
committerValery Sizov <valery@gitlab.com>2016-12-06 18:12:11 +0300
commitee8433466ee77c1da026842e965b32ebefab6f13 (patch)
tree5e0506c53bb1ef2c231318e6d1f692403b54aaab /lib/gitlab/bitbucket_import
parent84f2c219aa33de4890c7681372dd03309f216795 (diff)
Fix importing PRs with not existing branches
Diffstat (limited to 'lib/gitlab/bitbucket_import')
-rw-r--r--lib/gitlab/bitbucket_import/importer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/bitbucket_import/importer.rb b/lib/gitlab/bitbucket_import/importer.rb
index 6438c8a52e4..34d93542955 100644
--- a/lib/gitlab/bitbucket_import/importer.rb
+++ b/lib/gitlab/bitbucket_import/importer.rb
@@ -81,10 +81,10 @@ module Gitlab
description: description,
source_project: project,
source_branch: pull_request.source_branch_name,
- source_branch_sha: project.repository.rugged.lookup(pull_request.source_branch_sha).oid,
+ source_branch_sha: pull_request.source_branch_sha,
target_project: project,
target_branch: pull_request.target_branch_name,
- target_branch_sha: project.repository.rugged.lookup(pull_request.target_branch_sha).oid,
+ target_branch_sha: pull_request.target_branch_sha,
state: pull_request.state,
author_id: gitlab_user_id(project, pull_request.author),
assignee_id: nil,