summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-01 12:58:45 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-01 12:58:45 +0100
commit62c14ba2edf9ac4b4bb1e8c46c0c60f1b6574909 (patch)
tree09df506c6905a490613a6fd31edc8004b3c15495 /lib
parentbd4ab21c07061e06166b08d86157e4004665ccbc (diff)
downloadgitlab-ce-62c14ba2edf9ac4b4bb1e8c46c0c60f1b6574909.tar.gz
Render commit reference using short sha, but include full sha in comment.
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/markdown/abstract_reference_filter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/markdown/abstract_reference_filter.rb b/lib/gitlab/markdown/abstract_reference_filter.rb
index 02a9e05a699..f6df9518fc6 100644
--- a/lib/gitlab/markdown/abstract_reference_filter.rb
+++ b/lib/gitlab/markdown/abstract_reference_filter.rb
@@ -82,7 +82,7 @@ module Gitlab
data = data_attribute(project: project.id, object_sym => object.id, original: match)
url = matches[:url] || url_for_object(object, project)
- text = object.to_reference(context[:project])
+ text = object.reference_link_text(context[:project])
extras = object_link_text_extras(object, matches)
text += " (#{extras.join(", ")})" if extras.any?