summaryrefslogtreecommitdiff
path: root/lib/gitlab/bitbucket_server_import
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-07-31 15:38:14 -0700
committerStan Hu <stanhu@gmail.com>2018-07-31 15:38:14 -0700
commitdb4ff688da690f3b7c182e5e9f4f9146518c1d69 (patch)
treec0ed000e9a1f609989391290a8f1d4a54e7a7c23 /lib/gitlab/bitbucket_server_import
parent980ac50b2796968a6e3d4a9eb497b41059b6034b (diff)
downloadgitlab-ce-db4ff688da690f3b7c182e5e9f4f9146518c1d69.tar.gz
Fix failing spec in fallback diff note change
Diffstat (limited to 'lib/gitlab/bitbucket_server_import')
-rw-r--r--lib/gitlab/bitbucket_server_import/importer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/bitbucket_server_import/importer.rb b/lib/gitlab/bitbucket_server_import/importer.rb
index 69f9cc398c8..eb3b76409cd 100644
--- a/lib/gitlab/bitbucket_server_import/importer.rb
+++ b/lib/gitlab/bitbucket_server_import/importer.rb
@@ -261,11 +261,11 @@ module Gitlab
def create_fallback_diff_note(merge_request, comment, position)
attributes = pull_request_comment_attributes(comment)
- note = "*Comment on "
+ note = "*Comment on"
note += " #{position.old_path}:#{position.old_line} -->" if position.old_line
note += " #{position.new_path}:#{position.new_line}" if position.new_line
- new += "*\n\n#{comment.note}"
+ note += "*\n\n#{comment.note}"
attributes[:note] = note
merge_request.notes.create!(attributes)