From 4f819768f2828788b1139b5454abf90dea4cc050 Mon Sep 17 00:00:00 2001 From: cel Date: Wed, 17 Jan 2018 10:21:31 -1000 Subject: Handle git ref links where the commit is not in the message --- lib/render-msg.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/render-msg.js') diff --git a/lib/render-msg.js b/lib/render-msg.js index aaf7271..b4ba87a 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -694,6 +694,7 @@ RenderMsg.prototype.gitUpdate = function (cb) { var type = /^refs\/tags/.test(ref) ? 'tag' : 'commit' var path = id && ('/git/' + type + '/' + encodeURIComponent(id) + '?msg=' + encodeURIComponent(self.msg.key)) + + '&search=1' return h('li', ref.replace(/^refs\/(heads|tags)\//, ''), ': ', id ? h('a', {href: self.render.toUrl(path)}, h('code', id)) -- cgit v1.2.3