From 713049a7b0039a73ca35c2ce1ef6a47ee621d3aa Mon Sep 17 00:00:00 2001 From: cel Date: Sun, 21 Jan 2018 20:08:53 -1000 Subject: Prompt for missing blobs on git diff page --- lib/serve.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/serve.js b/lib/serve.js index 2eecd09..09f7aa3 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -2105,6 +2105,8 @@ Serve.prototype.gitDiff = function (revs) { }, done()) self.getMsgDecryptedMaybeOoo(self.query.msg, done()) done(function (err, msg1, msg2) { + if (err && err.name === 'BlobNotFoundError') + return self.askWantBlobs(err.links) if (err) return pull( pull.once(u.renderError(err).outerHTML), self.wrapPage('git diff ' + revs), -- cgit v1.2.3