Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Martin4ndersen opened this issue Sep 21, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Martin4ndersen
Copy link

Martin4ndersen commented Sep 21, 2024

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 Martin4ndersen added the bug Something isn't working label Sep 21, 2024
@kpapadatos
Copy link

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

wsl -- git checkout main 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants