mercurial/windows.py
changeset 9591 012f1244cd4c
parent 9449 61e30f257c15
parent 9572 1f665246dab3
child 9592 5ebeef7cc201
--- a/mercurial/windows.py	Wed Oct 07 22:50:20 2009 +0200
+++ b/mercurial/windows.py	Fri Oct 09 00:29:39 2009 +0200
@@ -267,7 +267,7 @@
         head, tail = os.path.split(head)
     while head and tail:
         try:
-            if osutil.listdir(name):
+            if osutil.listdir(head):
                 return
             os.rmdir(head)
         except: