Skip to content

Commit 6a18b75

Browse files
authored
Merge pull request #3042 from rtfd/exclude-projects
Don't delete the subprojects directory on sync of superproject
2 parents 3a6d64f + 05ced96 commit 6a18b75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readthedocs/builds/syncers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ def copy(cls, path, target, host, is_file=False, **__):
103103
log.info(mkdir_cmd)
104104
# Add a slash when copying directories
105105
sync_cmd = (
106-
"ssh {user}@{server} 'rsync -av --delete {user}@{host}:{path} {target}'"
106+
"ssh {user}@{server} 'rsync -av "
107+
"--delete --exclude projects {user}@{host}:{path} {target}'"
107108
.format(
108109
host=host,
109110
path=path,

0 commit comments

Comments
 (0)