mirror of
https://github.com/restic/restic.git
synced 2025-08-12 11:47:43 +00:00
Fix setting of ID in DecodeIndex
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user