Clean up exclude pattern handling

This commit is contained in:
Kovid Goyal
2023-02-26 09:12:12 +05:30
parent 5cc3d3cbfe
commit 6de77ce987
5 changed files with 57 additions and 32 deletions

View File

@@ -275,7 +275,7 @@ func make_tarfile(cd *connection_data, get_local_env func(string) (string, bool)
return
}
for _, ci := range cd.host_opts.Copy {
err = get_file_data(add, seen, ci.local_path, ci.arcname, ci.exclude_patterns, true)
err = ci.get_file_data(add, seen)
if err != nil {
return nil, err
}