repository: extract LoadTree/SaveTree
The repository has no real idea what a Tree is. So these methods never belonged there.
This commit is contained in:
parent
d9ea1e9ee2
commit
fbcbd5318c
22 changed files with 150 additions and 133 deletions
|
@ -250,7 +250,7 @@ func TestEnsureFileContent(ctx context.Context, t testing.TB, repo restic.Reposi
|
|||
func TestEnsureTree(ctx context.Context, t testing.TB, prefix string, repo restic.Repository, treeID restic.ID, dir TestDir) {
|
||||
t.Helper()
|
||||
|
||||
tree, err := repo.LoadTree(ctx, treeID)
|
||||
tree, err := restic.LoadTree(ctx, repo, treeID)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue