From 704394335d188f98074906558c73db228c571690 Mon Sep 17 00:00:00 2001 From: cel Date: Mon, 25 Dec 2017 10:20:12 -1000 Subject: Handle more missing git blobs --- lib/serve.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/serve.js') diff --git a/lib/serve.js b/lib/serve.js index 40f92a8..73e209c 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -1896,12 +1896,16 @@ Serve.prototype.gitTree = function (rev) { headMsgId: obj.msg.key, }, function (err, msg) { if (err && err.name === 'ObjectNotFoundError') return cb(null, file) + if (err && err.name === 'BlobNotFoundError') return cb(null, {missingBlobs: err.links}) if (err) return cb(err) file.msg = msg cb(null, file) }) }, 8), pull.map(function (item) { + if (item.missingBlobs) { + return self.askWantBlobsForm(item.missingBlobs) + } if (!item.msg) return ph('tr', [ ph('td', u.escapeHTML(item.name) + (item.type === 'tree' ? '/' : '')), -- cgit v1.2.3