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:
authorStan Hu <stanhu@gmail.com>2018-07-31 23:59:45 +0300
committerStan Hu <stanhu@gmail.com>2018-07-31 23:59:45 +0300
commit0b91a53302b4800a626fe4c930e08eebaa34b3da (patch)
tree3074199e93e907e9bde6a1a8a8fce0b26ea6bc42 /lib/gitlab/bitbucket_server_import
parentfc5df829bdbad7a47eae9ba1e14b55d3bb9ec39a (diff)
Handle empty description field
Diffstat (limited to 'lib/gitlab/bitbucket_server_import')
-rw-r--r--lib/gitlab/bitbucket_server_import/importer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/bitbucket_server_import/importer.rb b/lib/gitlab/bitbucket_server_import/importer.rb
index 74ae6bc1ba5..a10cd860639 100644
--- a/lib/gitlab/bitbucket_server_import/importer.rb
+++ b/lib/gitlab/bitbucket_server_import/importer.rb
@@ -174,7 +174,7 @@ module Gitlab
def import_bitbucket_pull_request(pull_request)
description = ''
description += @formatter.author_line(pull_request.author) unless find_user_id(pull_request.author_email)
- description += pull_request.description
+ description += pull_request.description if pull_request.description
source_branch_sha = pull_request.source_branch_sha
target_branch_sha = pull_request.target_branch_sha