Merge pull request #1744 from restic/fix-parent-detect

backup: Clean target paths before finding parent
This commit is contained in:
Alexander Neumann 2018-05-01 11:13:19 +02:00
commit ecbbd851a1
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ func FindLatestSnapshot(ctx context.Context, repo Repository, targets []string,
return ID{}, errors.Wrap(err, "Abs")
}
}
absTargets = append(absTargets, target)
absTargets = append(absTargets, filepath.Clean(target))
}
var (