From 2a8eca1a02694ca16a5264b138b8d58fdba279d7 Mon Sep 17 00:00:00 2001 From: fengxsong Date: Fri, 20 Oct 2023 11:47:14 +0800 Subject: [PATCH] fix: ssh sync registry contents to target dir (#4123) --- pkg/filesystem/registry/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/filesystem/registry/sync.go b/pkg/filesystem/registry/sync.go index 0c442bb8814..285d1366010 100644 --- a/pkg/filesystem/registry/sync.go +++ b/pkg/filesystem/registry/sync.go @@ -147,7 +147,7 @@ func getRegistryServeCommand(pathResolver constants.PathResolver, port string) s } func syncViaSSH(_ context.Context, s *impl, target string, localDir string) error { - return ssh.CopyDir(s.execer, target, localDir, s.pathResolver.RootFSPath(), nil) + return ssh.CopyDir(s.execer, target, localDir, s.pathResolver.RootFSRegistryPath(), nil) } func syncViaHTTP(ctx context.Context, target string, localDir string) error {