From 3e29ed802ac36cdfbba66e070190024704cef165 Mon Sep 17 00:00:00 2001 From: Diego Maldonado Date: Mon, 21 Apr 2025 18:41:55 +0900 Subject: [PATCH 1/5] fixed bug with tmp folder removal for async calls --- src/gitingest/entrypoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitingest/entrypoint.py b/src/gitingest/entrypoint.py index 0af4a4ba..0d42c43e 100644 --- a/src/gitingest/entrypoint.py +++ b/src/gitingest/entrypoint.py @@ -93,7 +93,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( From 6f53e3cc1022bcab52baa966bd4ed0087903ef48 Mon Sep 17 00:00:00 2001 From: Diego Maldonado Date: Tue, 22 Apr 2025 17:58:18 +0900 Subject: [PATCH 2/5] increased limits for bigger github project ingestion --- src/gitingest/cloning.py | 2 +- src/gitingest/config.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gitingest/cloning.py b/src/gitingest/cloning.py index 79b97cb9..9120973c 100644 --- a/src/gitingest/cloning.py +++ b/src/gitingest/cloning.py @@ -8,7 +8,7 @@ from gitingest.utils.git_utils import check_repo_exists, ensure_git_installed, run_command from gitingest.utils.timeout_wrapper import async_timeout -TIMEOUT: int = 60 +TIMEOUT: int = 300 @async_timeout(TIMEOUT) diff --git a/src/gitingest/config.py b/src/gitingest/config.py index 9740713c..92d993bf 100644 --- a/src/gitingest/config.py +++ b/src/gitingest/config.py @@ -4,9 +4,9 @@ from pathlib import Path MAX_FILE_SIZE = 10 * 1024 * 1024 # 10 MB -MAX_DIRECTORY_DEPTH = 20 # Maximum depth of directory traversal -MAX_FILES = 10_000 # Maximum number of files to process -MAX_TOTAL_SIZE_BYTES = 500 * 1024 * 1024 # 500 MB +MAX_DIRECTORY_DEPTH = 100 # Maximum depth of directory traversal +MAX_FILES = 10_000_000 # Maximum number of files to process +MAX_TOTAL_SIZE_BYTES = 10 * 1024 * 1024 * 1024 # 10 MB OUTPUT_FILE_NAME = "digest.txt" From 9734fe8930f87569cf14cb1cff493d77f2a8d9f7 Mon Sep 17 00:00:00 2001 From: Filip Christiansen <22807962+filipchristiansen@users.noreply.github.com> Date: Tue, 24 Jun 2025 09:32:11 +0200 Subject: [PATCH 3/5] remove unused import --- src/gitingest/entrypoint.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gitingest/entrypoint.py b/src/gitingest/entrypoint.py index 1cc92aac..b7b266a8 100644 --- a/src/gitingest/entrypoint.py +++ b/src/gitingest/entrypoint.py @@ -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 From 4f6f5995206aff0a5605ec224c95650197a6bc1c Mon Sep 17 00:00:00 2001 From: Diego Maldonado Date: Mon, 30 Jun 2025 15:30:58 +0900 Subject: [PATCH 4/5] fix comment according to new deletion path --- src/gitingest/entrypoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitingest/entrypoint.py b/src/gitingest/entrypoint.py index fc604000..0af6bfd3 100644 --- a/src/gitingest/entrypoint.py +++ b/src/gitingest/entrypoint.py @@ -91,7 +91,7 @@ async def ingest_async( return summary, tree, content finally: - # Clean up the temporary directory if it was created + # Clean up the temporary directory for the repository if repo_cloned: shutil.rmtree(query.local_path) From bafa2d4965fa8ba1950589d742b80d1d31e8599f Mon Sep 17 00:00:00 2001 From: Romain Courtois Date: Tue, 1 Jul 2025 02:41:27 +0200 Subject: [PATCH 5/5] delete parent folder as well when cleaning up --- src/gitingest/entrypoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitingest/entrypoint.py b/src/gitingest/entrypoint.py index 0af6bfd3..aca57672 100644 --- a/src/gitingest/entrypoint.py +++ b/src/gitingest/entrypoint.py @@ -93,7 +93,7 @@ async def ingest_async( finally: # Clean up the temporary directory for the repository if repo_cloned: - shutil.rmtree(query.local_path) + shutil.rmtree(query.local_path.parent) def ingest(