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
|
@ -88,7 +88,7 @@ func WriteTest(t *testing.T, format string, cd CheckDump) {
|
|||
sn, _, err := arch.Snapshot(ctx, []string{"."}, archiver.SnapshotOptions{})
|
||||
rtest.OK(t, err)
|
||||
|
||||
tree, err := repo.LoadTree(ctx, *sn.Tree)
|
||||
tree, err := restic.LoadTree(ctx, repo, *sn.Tree)
|
||||
rtest.OK(t, err)
|
||||
|
||||
dst := &bytes.Buffer{}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue