repository: expose cache via method

This commit is contained in:
Michael Eischer
2025-01-13 22:40:18 +01:00
parent 99e105eeb6
commit b7ff8ea9cd
6 changed files with 21 additions and 17 deletions
+1 -1
View File
@@ -304,7 +304,7 @@ func (opts BackupOptions) Check(gopts GlobalOptions, args []string) error {
// from being saved in a snapshot based on path only
func collectRejectByNameFuncs(opts BackupOptions, repo *repository.Repository) (fs []archiver.RejectByNameFunc, err error) {
// exclude restic cache
if repo.Cache != nil {
if repo.Cache() != nil {
f, err := rejectResticCache(repo)
if err != nil {
return nil, err