summaryrefslogtreecommitdiffstats
path: root/subcmds
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds')
-rw-r--r--subcmds/sync.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index 1b716351..e68a025e 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -339,13 +339,13 @@ uncommitted changes are present' % project.relpath
339 print >>sys.stderr, 'Deleting obsolete path %s' % project.worktree 339 print >>sys.stderr, 'Deleting obsolete path %s' % project.worktree
340 shutil.rmtree(project.worktree) 340 shutil.rmtree(project.worktree)
341 # Try deleting parent subdirs if they are empty 341 # Try deleting parent subdirs if they are empty
342 dir = os.path.dirname(project.worktree) 342 project_dir = os.path.dirname(project.worktree)
343 while dir != self.manifest.topdir: 343 while project_dir != self.manifest.topdir:
344 try: 344 try:
345 os.rmdir(dir) 345 os.rmdir(project_dir)
346 except OSError: 346 except OSError:
347 break 347 break
348 dir = os.path.dirname(dir) 348 project_dir = os.path.dirname(project_dir)
349 349
350 new_project_paths.sort() 350 new_project_paths.sort()
351 fd = open(file_path, 'w') 351 fd = open(file_path, 'w')