aboutsummaryrefslogtreecommitdiff
path: root/lib/git.js
diff options
context:
space:
mode:
authorcel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-05-28 18:42:44 -1000
committercel <cel@f/6sQ6d2CMxRUhLpspgGIulDxDCwYD7DzFzPNr7u5AU=.ed25519>2017-05-28 18:42:44 -1000
commitb66bcecec258b0a2631ec338501afa9409882fe8 (patch)
treea321f0fc90439c64f9210c9d459513016878c994 /lib/git.js
parentfd460396edec6969e0dae683021a7bda577f6d79 (diff)
downloadpatchfoo-b66bcecec258b0a2631ec338501afa9409882fe8.tar.gz
patchfoo-b66bcecec258b0a2631ec338501afa9409882fe8.zip
Slice packfiles manually
Support vanilla multiblob
Diffstat (limited to 'lib/git.js')
-rw-r--r--lib/git.js4
1 files changed, 2 insertions, 2 deletions
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
}),