From b66bcecec258b0a2631ec338501afa9409882fe8 Mon Sep 17 00:00:00 2001 From: cel Date: Sun, 28 May 2017 18:42:44 -1000 Subject: Slice packfiles manually Support vanilla multiblob --- lib/git.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/git.js') diff --git a/lib/git.js b/lib/git.js index 07061e2..1360a6f 100644 --- a/lib/git.js +++ b/lib/git.js @@ -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 }), -- cgit v1.2.3