diff options
author | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-05-28 18:42:44 -1000 |
---|---|---|
committer | cel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519> | 2017-05-28 18:42:44 -1000 |
commit | b66bcecec258b0a2631ec338501afa9409882fe8 (patch) | |
tree | a321f0fc90439c64f9210c9d459513016878c994 /lib/git.js | |
parent | fd460396edec6969e0dae683021a7bda577f6d79 (diff) | |
download | patchfoo-b66bcecec258b0a2631ec338501afa9409882fe8.tar.gz patchfoo-b66bcecec258b0a2631ec338501afa9409882fe8.zip |
Slice packfiles manually
Support vanilla multiblob
Diffstat (limited to 'lib/git.js')
-rw-r--r-- | lib/git.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -82,7 +82,7 @@ Git.prototype.openObject = function (opts, cb) { Git.prototype.readObject = function (obj) { return pull( - this.app.readBlob(obj.packLink, {start: obj.offset, end: obj.next}), + this.app.readBlobSlice(obj.packLink, {start: obj.offset, end: obj.next}), this.decodeObject({ type: obj.type, length: obj.length, @@ -310,7 +310,7 @@ Git.prototype.decodeObject = function (opts) { if (!offset) return cb(null, 'missing source object ' + sourcehash.toString('hex')) var readSource = pull( - self.app.readBlob(opts.packLink, { + self.app.readBlobSlice(opts.packLink, { start: offset.offset, end: offset.next }), |