aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-05-04 12:20:46 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-05-04 12:21:14 -1000
commit49d72723ed74ac04099a46e2aae2ef68432ba210 (patch)
tree9680c22c02d21b9ae4c8065c8b2a94fdc8f71159
parent63f0ef02ef5ebe4295b7019a8cd521dae5aae0cb (diff)
downloadpatchfoo-49d72723ed74ac04099a46e2aae2ef68432ba210.tar.gz
patchfoo-49d72723ed74ac04099a46e2aae2ef68432ba210.zip
Fix checking git-update size
-rw-r--r--lib/render-msg.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index 03db33d..2a0e7df 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -471,7 +471,7 @@ RenderMsg.prototype.gitUpdate = function (cb) {
var self = this
// h('a', {href: self.toUrl(self.c.repo)}, 'ssb://' + self.c.repo),
var size = [].concat(self.c.packs, self.c.indexes)
- .map(function (o) { return o.size })
+ .map(function (o) { return o && o.size })
.reduce(function (total, s) { return total + s })
self.link(self.c.repo, function (err, a) {
if (err) return cb(err)