Skip to content
3 changes: 1 addition & 2 deletions src/gitingest/entrypoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from typing import Optional, Set, Tuple, Union

from gitingest.cloning import clone_repo
from gitingest.config import TMP_BASE_PATH
from gitingest.ingestion import ingest_query
from gitingest.query_parsing import IngestionQuery, parse_query

Expand Down Expand Up @@ -108,7 +107,7 @@ async def ingest_async(
finally:
# Clean up the temporary directory if it was created
if repo_cloned:
shutil.rmtree(TMP_BASE_PATH, ignore_errors=True)
shutil.rmtree(query.local_path)


def ingest(
Expand Down
Loading