aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index ef23b3f..72b8015 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -480,7 +480,7 @@ RenderMsg.prototype.gitUpdate = function (cb) {
var id = self.c.refs[ref]
var type = /^refs\/tags/.test(ref) ? 'tag' : 'commit'
var path = id && ('/git/' + type + '/' + encodeURIComponent(id)
- + '?head=' + encodeURIComponent(self.msg.key))
+ + '?msg=' + encodeURIComponent(self.msg.key))
return h('li',
ref.replace(/^refs\/(heads|tags)\//, ''), ': ',
id ? h('a', {href: self.render.toUrl(path)}, h('code', id))
@@ -489,7 +489,7 @@ RenderMsg.prototype.gitUpdate = function (cb) {
Array.isArray(self.c.commits) ?
h('ul', self.c.commits.map(function (commit) {
var path = '/git/commit/' + encodeURIComponent(commit.sha1)
- + '?head=' + encodeURIComponent(self.msg.key)
+ + '?msg=' + encodeURIComponent(self.msg.key)
return h('li', h('a', {href: self.render.toUrl(path)},
h('code', String(commit.sha1).substr(0, 8))), ' ',
self.linkify(String(commit.title)),