From e44c6ab41c68a76085467c2c9735d13707713b87 Mon Sep 17 00:00:00 2001 From: "Hille Christoph (IFAG IT RDI RD PLM)" Date: Sat, 15 Jul 2023 20:17:20 +0200 Subject: [PATCH] replace rsync command --- src/tox_ansible/plugin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/tox_ansible/plugin.py b/src/tox_ansible/plugin.py index 8671134..4a24a6c 100644 --- a/src/tox_ansible/plugin.py +++ b/src/tox_ansible/plugin.py @@ -35,7 +35,6 @@ "cp", "git", "rm", - "rsync", "mkdir", "cd", "echo", @@ -448,8 +447,8 @@ def conf_commands_pre( group = "echo ::group::Copy the collection to the galaxy build dir" commands.append(group) cd_tox_dir = f"cd {TOX_WORK_DIR}" - rsync_cmd = f'rsync -r --cvs-exclude --filter=":- .gitignore" . {galaxy_build_dir}' - full_cmd = f"bash -c '{cd_tox_dir} && {rsync_cmd}'" + copy_cmd = f"cp -r --parents $(git ls-files 2> /dev/null || ls) {galaxy_build_dir}" + full_cmd = f"bash -c '{cd_tox_dir} && {copy_cmd}'" commands.append(full_cmd) if in_action(): commands.append(end_group)