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