Do not skip root tree when searching for trees (#5153)

This fixes an issue where restic cannot find the tree when trying to find the
tree id of a snapshot.

---------

Co-authored-by: Albin Vass <albinvass@gmail.com>
Co-authored-by: Michael Eischer <michael.eischer@fau.de>
This commit is contained in:
Albin Vass
2025-01-13 22:08:38 +01:00
committed by GitHub
parent 14d02df8bb
commit 5bf0204caf
3 changed files with 48 additions and 25 deletions

View File

@@ -0,0 +1,6 @@
Bugfix: Include root tree when searching using `find --tree`
`restic find --tree` didn't find trees referenced by `restic snapshot --json`.
It now correctly includes the root tree when searching.
https://github.com/restic/restic/pull/5153