Commit 3bc86e64233d64d10a70764e6b6d40e8b28affe7
Use updated uploadPack API
abstract-pull-git-repo 4c0e9c672277a4ba660b8d92fc417f3c85c8e7df ssb-git-repo 5f0ba2a8afedab536bc03a7e5b431a4fd4e1eed9Charles Lehner committed on 3/3/2016, 11:26:25 PM
Parent: 28fadee24dc685d04adfe69922b8d82ddbf3cd4a
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -375,16 +375,19 @@ | ||
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), 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) | |
379 | + repo.uploadPack(pull.values(updates), pull.once({ | |
380 | + pack: pull( | |
381 | + packfile(), | |
382 | + // for some reason i was getting zero length buffers which | |
383 | + // were causing muxrpc to fail, so remove them here. | |
384 | + pull.filter(function (buf) { | |
385 | + return buf.length | |
386 | + }) | |
387 | + ), | |
388 | + idx: idx | |
389 | + }), idxCb) | |
387 | 390 | }) |
388 | 391 | } else { |
389 | 392 | repo.update(pull.values(updates), pull( |
390 | 393 | lines.passthrough, |
Built with git-ssb-web