aboutsummaryrefslogtreecommitdiff
path: root/lib/git.js
diff options
context:
space:
mode:
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
}),