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()])
|
for t in targets] + [os.getcwd()])
|
||||||
bsplit = base.split('/')
|
bsplit = base.split('/')
|
||||||
for i in range(len(bsplit)-1, 0, -1):
|
for i in range(len(bsplit)-1, 0, -1):
|
||||||
newbase = '%s/.redo' % '/'.join(bsplit[:i])
|
newbase = '/'.join(bsplit[:i])
|
||||||
if os.path.exists(newbase):
|
if os.path.exists(newbase + '/.redo'):
|
||||||
base = newbase
|
base = newbase
|
||||||
break
|
break
|
||||||
os.environ['REDO_BASE'] = base
|
os.environ['REDO_BASE'] = base
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue