diff --git a/src/tox_ansible/plugin.py b/src/tox_ansible/plugin.py index d97ec82..035bafc 100644 --- a/src/tox_ansible/plugin.py +++ b/src/tox_ansible/plugin.py @@ -518,7 +518,7 @@ 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}" - copy_cmd = f"cp -r --parents $(git ls-files 2> /dev/null || ls) {galaxy_build_dir}" + copy_cmd = f"rsync -r $(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():