Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/gitingest/query_ingestion.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,6 @@ def run_ingest_query(query: ParsedQuery) -> Tuple[str, str, str]:
raise ValueError(f"{query.slug} cannot be found")

if query.type and query.type == "blob":
return _ingest_single_file(_normalize_path(path.resolve()), query)
return _ingest_single_file(path, query)

return _ingest_directory(_normalize_path(path.resolve()), query)
return _ingest_directory(path, query)
2 changes: 1 addition & 1 deletion src/gitingest/repository_ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async def ingest_async(
# Clean up the temporary directory if it was created
if parsed_query.url:
# Clean up the temporary directory
shutil.rmtree(TMP_BASE_PATH, ignore_errors=True)
shutil.rmtree(TMP_BASE_PATH)


def ingest(
Expand Down
Loading