summaryrefslogtreecommitdiffstats
path: root/subcmds/sync.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r--subcmds/sync.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index fafc1e5c..ec7337aa 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -550,7 +550,8 @@ later is required to fix a server side protocol bug.
550 old_project_paths = fd.read().split('\n') 550 old_project_paths = fd.read().split('\n')
551 finally: 551 finally:
552 fd.close() 552 fd.close()
553 for path in old_project_paths: 553 # In reversed order, so subfolders are deleted before parent folder.
554 for path in sorted(old_project_paths, reverse=True):
554 if not path: 555 if not path:
555 continue 556 continue
556 if path not in new_project_paths: 557 if path not in new_project_paths: