Skip to content
Browse files

fix ref delta

  • Loading branch information...
1 parent ac85dc5 commit 33538e9388f28eea2adb6ab3f67563202332e5dd @chrisdickinson committed Mar 23, 2013
Showing with 2 additions and 7 deletions.
  1. +2 −7 parse.js
View
9 parse.js
@@ -171,14 +171,9 @@ function parse(packfile, idx_offset, next_idx_offset) {
}
function ontarget(err, target) {
- var idx = 0
- , out
+ var out
- while(target.data.readUInt8(idx++) !== 0) {
- //
- }
-
- out = apply_delta(delta, target.data.slice(idx + 1))
+ out = apply_delta(delta, target.data)
stream.queue({
type: target.type
, data: out

0 comments on commit 33538e9

Please sign in to comment.
Something went wrong with that request. Please try again.