mirror of
https://github.com/restic/restic.git
synced 2026-11-19 04:05:21 +00:00
Merge pull request #1744 from restic/fix-parent-detect
backup: Clean target paths before finding parent
This commit is contained in:
commit
ecbbd851a1
1 file changed
+1
-1
@@ -24,7 +24,7 @@ func FindLatestSnapshot(ctx context.Context, repo Repository, targets []string,
|
|||||||
return ID{}, errors.Wrap(err, "Abs")
|
return ID{}, errors.Wrap(err, "Abs")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
absTargets = append(absTargets, target)
|
absTargets = append(absTargets, filepath.Clean(target))
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
Reference in new issue
Block a user