-
Notifications
You must be signed in to change notification settings - Fork 861
Closed
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is neededwork in progressThis PR is not ready yet but is being worked onThis PR is not ready yet but is being worked on
Description
Hello all, thanks for the nice library.
There seems to be a bug while trying to ingest multiple repos.
At https://github.com/cyclotruc/gitingest/blob/main/src/gitingest/entrypoint.py#L96, you can see that TMP_BASE_PATH
is completely eliminated.
TMP_BASE_PATH
is defined here: https://github.com/cyclotruc/gitingest/blob/main/src/gitingest/config.py#L13.
The issue is that the TMP_BASE_PATH
is emptied on each iteration.
Here is an example:
async def main():
urls = [
"https://github.com/cyclotruc/gitingest",
"https://github.com/pandas-dev/pandas",
"https://github.com/microsoft/vscode"
]
tasks = map(ingest_async, urls)
results = await tqdm.gather(*tasks, desc="Processing repositories")
RuntimeError: Command failed: git clone --single-branch --depth=1 https://github.com/microsoft/vscode /tmp/gitingest/96cf934b-3ae9-4e46-9387-401c55414568/microsoft-vscode
Error: Cloning into '/tmp/gitingest/96cf934b-3ae9-4e46-9387-401c55414568/microsoft-vscode'...
fatal: Unable to create '/tmp/gitingest/96cf934b-3ae9-4e46-9387-401c55414568/microsoft-vscode/.git/shallow.lock': No such file or directory
Processing repositories: 33%|██████ | 1/3 [00:08<00:16, 8.22s/it
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is neededwork in progressThis PR is not ready yet but is being worked onThis PR is not ready yet but is being worked on