diff options
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r-- | lib/render-msg.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js index cff8f29..c0de668 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -754,9 +754,9 @@ RenderMsg.prototype.gitUpdate = function (cb) { h('ul', self.c.commits.map(function (commit) { var path = '/git/commit/' + encodeURIComponent(commit.sha1) + '?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)), + return h('li', commit.sha1 ? [h('a', {href: self.render.toUrl(path)}, + h('code', String(commit.sha1).substr(0, 8))), ' '] : '', + commit.title ? self.linkify(String(commit.title)) : '', self.render.gitCommitBody(commit.body) ) })) : '', |