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:
parent
65d4639b48
commit
81356931a4
1 changed files with 2 additions and 2 deletions
4
redo.py
4
redo.py
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue