aboutsummaryrefslogtreecommitdiff
path: root/lib/serve.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-06-02 18:34:51 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-06-02 18:34:51 -1000
commit2aa94754c9a09e5ea707a30c6e937b7bfb3dd05a (patch)
treec491defc88a61197d37afa024e9b8d2c1c7253cc /lib/serve.js
parentae9162cbf72e851a7349aa0579ba695bfa9be6b5 (diff)
downloadpatchfoo-2aa94754c9a09e5ea707a30c6e937b7bfb3dd05a.tar.gz
patchfoo-2aa94754c9a09e5ea707a30c6e937b7bfb3dd05a.zip
Use existing function for rendering git commit bodies
Diffstat (limited to 'lib/serve.js')
-rw-r--r--lib/serve.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 9d5eb82..d2510e1 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -1438,7 +1438,8 @@ Serve.prototype.gitCommit = function (rev) {
pull.once(commit.tree),
self.gitObjectLinks(obj.msg.key, 'tree')
)]) : '',
- h('pre', self.app.render.linkify(commit.body)).outerHTML,
+ h('blockquote',
+ self.app.render.gitCommitBody(commit.body)).outerHTML,
]
]),
self.wrapPage('git commit ' + rev),