Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Fix missing objects if they where deltified using ref-delta #258

Merged
merged 1 commit into from
Feb 9, 2017
Merged

Fix missing objects if they where deltified using ref-delta #258

merged 1 commit into from
Feb 9, 2017

Conversation

ajnavarro
Copy link
Contributor

  • Deleted invalid logic that returned nil if an ref-delta was not found into the decoder index. This logic is missing objects if they are deltified using ref-deltas, and the decoder is initialized using a specific type.
  • Now, to avoid that problem, index is mandatory to decode correctly a packfile of a specific type. Decoder.SetOffsets method now is called into the EncodedObjectIterator to avoid this problem.

- Deleted invalid logic that returned nil if an ref-delta was not found into the decoder index. This logic was missing objects if it was deltified using ref-deltas.
- Now, to avoid that problem, index is mandatory to decode correctly a packfile of a specific type. Decoder.SetOffsets method now is called into the EncodedObjectIterator to avoid this problem.
@smola smola requested review from mcuadros and alcortesm February 7, 2017 15:22
@ajnavarro ajnavarro merged commit 4f7ef8f into src-d:master Feb 9, 2017
@ajnavarro ajnavarro deleted the fix/onf-decoder branch February 9, 2017 09:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants