From 20866e78ed801f2ccc7bcf90f2e2cd5a93f98cf5 Mon Sep 17 00:00:00 2001 From: Shawn Davis Date: Sun, 26 Nov 2023 17:20:29 -0600 Subject: [PATCH] Fix issue with exclude and rsync. --- scripttease/lib/commands/posix.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripttease/lib/commands/posix.py b/scripttease/lib/commands/posix.py index 3257031..e83dfe8 100644 --- a/scripttease/lib/commands/posix.py +++ b/scripttease/lib/commands/posix.py @@ -539,6 +539,7 @@ def rsync(source, target, delete=False, exclude=None, host=None, key_file=None, tokens.append("--delete") if exclude is not None: + # tokens.append("--exclude-from={'%s'}" % exclude) tokens.append("--exclude-from=%s" % exclude) # --partial and --progress @@ -653,7 +654,8 @@ def sync(source, target, delete=False, exclude=None, links=True, recursive=True, tokens = list() tokens.append("rsync") - tokens.append("--cvs-exclude") + # tokens.append("--cvs-exclude") + tokens.append("--exclude=.git") tokens.append("--checksum") tokens.append("--compress") @@ -664,6 +666,7 @@ def sync(source, target, delete=False, exclude=None, links=True, recursive=True, tokens.append("--delete") if exclude is not None: + # tokens.append("--exclude-from={'%s'}" % exclude) tokens.append("--exclude-from=%s" % exclude) # --partial and --progress