diff --git a/pkg/filesystem/registry/sync.go b/pkg/filesystem/registry/sync.go index 7c7f52cd358..dc6357c4c6a 100644 --- a/pkg/filesystem/registry/sync.go +++ b/pkg/filesystem/registry/sync.go @@ -150,7 +150,7 @@ func syncViaSSH(s *impl, targets []string) func(context.Context, string) error { for i := range targets { target := targets[i] eg.Go(func() error { - return ssh.CopyDir(s.ssh, target, localDir, s.pathResolver.RootFSPath(), nil) + return ssh.CopyDir(s.ssh, target, localDir, s.pathResolver.RootFSRegistryPath(), nil) }) } return eg.Wait()