Fix setting of ID in DecodeIndex

This commit is contained in:
Alexander Weiss
2020-10-17 09:06:10 +02:00
parent 4ba237bb93
commit b44ecde8b0
4 changed files with 19 additions and 10 deletions

View File

@@ -121,7 +121,7 @@ func (c *Checker) LoadIndex(ctx context.Context) (hints []error, errs []error) {
buf, err = c.repo.LoadAndDecrypt(ctx, buf[:0], restic.IndexFile, fi.ID)
if err == nil {
idx, oldFormat, err = repository.DecodeIndex(buf)
idx, oldFormat, err = repository.DecodeIndex(buf, fi.ID)
}
if oldFormat {