diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-01-21 20:08:53 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2018-01-21 20:08:53 -1000 |
commit | 713049a7b0039a73ca35c2ce1ef6a47ee621d3aa (patch) | |
tree | dce1453edc37f06980721bb95bacb8e65f65e8b8 /lib/serve.js | |
parent | 4f819768f2828788b1139b5454abf90dea4cc050 (diff) | |
download | patchfoo-713049a7b0039a73ca35c2ce1ef6a47ee621d3aa.tar.gz patchfoo-713049a7b0039a73ca35c2ce1ef6a47ee621d3aa.zip |
Prompt for missing blobs on git diff page
Diffstat (limited to 'lib/serve.js')
-rw-r--r-- | lib/serve.js | 2 |
1 files changed, 2 insertions, 0 deletions
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), |