Fix push when --out contains the wiki clone directory.
Keep wiki_clone* across convert --clean and skip copying the clone into itself (0.3.5). Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -248,7 +248,8 @@ def export_help(
|
||||
|
||||
if clean and out_dir.exists():
|
||||
for child in out_dir.iterdir():
|
||||
if child.name == ".git":
|
||||
if child.name == ".git" or child.name.startswith("wiki_clone"):
|
||||
# never wipe an in-tree wiki working clone
|
||||
continue
|
||||
if child.is_dir():
|
||||
shutil.rmtree(child)
|
||||
|
||||
Reference in New Issue
Block a user