git ssb

0+

cel / pull-git-remote-helper



Commit 28fadee24dc685d04adfe69922b8d82ddbf3cd4a

Work around 'unexpected end of parent stream' error

Charles Lehner committed on 3/3/2016, 10:14:05 PM
Parent: 72559d01b2c758ea8f14e5d23a18138cee44a010

Files changed

index.jschanged
index.jsView
@@ -375,9 +375,16 @@
375375 var idxCb = done()
376376 var packfile = cache(lines.passthrough)
377377 indexPack(packfile(), function (err, idx) {
378378 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)
380387 })
381388 } else {
382389 repo.update(pull.values(updates), pull(
383390 lines.passthrough,

Built with git-ssb-web