aboutsummaryrefslogtreecommitdiff
path: root/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'repo.go')
-rw-r--r--repo.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/repo.go b/repo.go
index c023568..467567d 100644
--- a/repo.go
+++ b/repo.go
@@ -454,6 +454,10 @@ func (r *Repo) matchStream(stream io.Reader, version int) []Chunk {
if len(buff) > 0 {
var temp *TempChunk
if len(buff) > r.chunkSize {
+ if prev != nil {
+ chunk, _ := r.encodeTempChunk(prev, version, &last)
+ chunks = append(chunks, chunk)
+ }
prev = NewTempChunk(buff[:r.chunkSize])
temp = NewTempChunk(buff[r.chunkSize:])
} else {