openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

Invalid path due to unnecessary duplicate folder prevents repository from being cloned

Open Martin4ndersen opened this issue 1 year ago • 1 comments

Identify the file (directory) to be fixed examples/data/hotel_invoices/extracted_invoice_json

Describe the problem When attempting to clone the repository, the process fails due to an invalid file path. Specifically, the file examples/data/hotel_invoices/extracted_invoice_json /20190119_002_extracted.json contains an extra space between extracted_invoice_json and the filename. This causes the following error during the checkout of the working tree:

error: invalid path 'examples/data/hotel_invoices/extracted_invoice_json /20190119_002_extracted.json'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.

Upon inspection, it appears that this path is an unnecessary duplicate of the valid folder examples/data/hotel_invoices/extracted_invoice_json/, which already exists without the space.

Describe a solution The issue can be resolved by removing the folder with the invalid path (examples/data/hotel_invoices/extracted_invoice_json /) from the repository. This will prevent the path conflict and allow users to clone the repository without issues.

Additional context This error commonly occurs on operating systems that enforce strict path constraints, such as Windows, which I am using.

Martin4ndersen avatar Sep 21 '24 15:09 Martin4ndersen

If you have this issue on Windows and you have WSL, you can just:

wsl -- git checkout main 

kpapadatos avatar Sep 26 '24 09:09 kpapadatos

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Nov 26 '24 02:11 github-actions[bot]

This issue was closed because it has been stalled for 10 days with no activity.

github-actions[bot] avatar Dec 06 '24 02:12 github-actions[bot]