Fix description when rsync'ing from the VM to the local checkout

This commit is contained in:
Pedro Algarvio 2024-05-03 22:35:53 +01:00
parent e8e0131d74
commit 1d21028471

View file

@ -1373,10 +1373,11 @@ class VM:
for drive in ("c:", "C:"):
rsync_remote_path = rsync_remote_path.replace(drive, "/cygdrive/c")
destination = f"{self.name}:{rsync_remote_path}"
description = "Rsync local checkout to VM..."
if download:
description = "Rsync VM to local checkout..."
self.rsync(f"{destination}/*", source, description, rsync_flags)
else:
description = "Rsync local checkout to VM..."
self.rsync(source, destination, description, rsync_flags)
if self.is_windows:
# rsync sets very strict file permissions and disables inheritance