aboutsummaryrefslogtreecommitdiff
path: root/lib/serve.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/serve.js')
-rw-r--r--lib/serve.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/serve.js b/lib/serve.js
index 5ba0004..793ad84 100644
--- a/lib/serve.js
+++ b/lib/serve.js
@@ -1799,6 +1799,7 @@ Serve.prototype.gitCommit = function (rev) {
ph('table', pull(
self.app.git.readCommitChanges(commit),
pull.map(function (file) {
+ var msg = file.msg || obj.msg
return ph('tr', [
ph('td', ph('code', u.escapeHTML(file.name))),
ph('td', file.deleted ? 'deleted'
@@ -1806,13 +1807,13 @@ Serve.prototype.gitCommit = function (rev) {
ph('a', {href:
self.app.render.toUrl('/git/blob/'
+ (file.hash[1] || file.hash[0])
- + '?msg=' + encodeURIComponent(obj.msg.key))
+ + '?msg=' + encodeURIComponent(msg.key))
}, 'created')
: file.hash ?
ph('a', {href:
self.app.render.toUrl('/git/diff/'
+ file.hash[0] + '..' + file.hash[1]
- + '?msg=' + encodeURIComponent(obj.msg.key))
+ + '?msg=' + encodeURIComponent(msg.key))
+ '&commit=' + rev
+ '&path=' + encodeURIComponent(file.name)
}, 'changed')