We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d099de5 commit e669e44Copy full SHA for e669e44
src/gitingest/entrypoint.py
@@ -9,7 +9,7 @@
9
from pathlib import Path
10
11
from gitingest.clone import clone_repo
12
-from gitingest.config import MAX_FILE_SIZE, TMP_BASE_PATH
+from gitingest.config import MAX_FILE_SIZE
13
from gitingest.ingestion import ingest_query
14
from gitingest.query_parser import IngestionQuery, parse_query
15
from gitingest.utils.auth import resolve_token
@@ -91,9 +91,9 @@ async def ingest_async(
91
92
return summary, tree, content
93
finally:
94
- # Clean up the temporary directory if it was created
+ # Clean up the temporary directory for the repository
95
if repo_cloned:
96
- shutil.rmtree(TMP_BASE_PATH, ignore_errors=True)
+ shutil.rmtree(query.local_path.parent)
97
98
99
def ingest(
0 commit comments