Commit 28fadee24dc685d04adfe69922b8d82ddbf3cd4a
Work around 'unexpected end of parent stream' error
Charles Lehner committed on 3/3/2016, 10:14:05 PMParent: 72559d01b2c758ea8f14e5d23a18138cee44a010
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -375,9 +375,16 @@ | ||
375 | 375 | var idxCb = done() |
376 | 376 | var packfile = cache(lines.passthrough) |
377 | 377 | indexPack(packfile(), function (err, idx) { |
378 | 378 | if (err) return idxCb(err) |
379 | - repo.uploadPack(pull.values(updates), packfile(), idx, idxCb) | |
379 | + repo.uploadPack(pull.values(updates), pull( | |
380 | + packfile(), | |
381 | + // for some reason i was getting zero length buffers which | |
382 | + // were causing muxrpc to fail, so remove them here. | |
383 | + pull.filter(function (buf) { | |
384 | + return buf.length | |
385 | + }) | |
386 | + ), idx, idxCb) | |
380 | 387 | }) |
381 | 388 | } else { |
382 | 389 | repo.update(pull.values(updates), pull( |
383 | 390 | lines.passthrough, |
Built with git-ssb-web