Oops, when searching up the tree, we'd use ../.redo/.redo as the redodir.

Obviously it should be ../.redo instead.  REDO_BASE is .., not ../.redo.
This commit is contained in:
Avery Pennarun 2010-11-19 03:15:45 -08:00
commit 81356931a4

View file

@ -27,8 +27,8 @@ if not os.environ.get('REDO_BASE', ''):
for t in targets] + [os.getcwd()])
bsplit = base.split('/')
for i in range(len(bsplit)-1, 0, -1):
newbase = '%s/.redo' % '/'.join(bsplit[:i])
if os.path.exists(newbase):
newbase = '/'.join(bsplit[:i])
if os.path.exists(newbase + '/.redo'):
base = newbase
break
os.environ['REDO_BASE'] = base