git ssb

0+

cel / pull-git-pack-concat



Commit b53631fba4f93f901e325267c230dc8f2ea06f91

Handle single pack case

Charles Lehner committed on 10/13/2016, 5:55:00 PM
Parent: 38e552a3d211d4c5de879ded2133b74392cff52c

Files changed

index.jschanged
index.jsView
@@ -108,8 +108,10 @@
108108 }
109109
110110 module.exports = function concatPacks(packs) {
111111 /* packs: [{read: source, numObjects: int}] */
112 + if (packs.length === 1) return packs[0].read
113 +
112114 var checksum = crypto.createHash('sha1')
113115 var packI = 0
114116 var state = 'begin'
115117

Built with git-ssb-web