Skip to content

Invalid path causes checkout failure on Windows due to trailing space in directory name #1837

Open
@amrkhalid-AKMI

Description

@amrkhalid-AKMI

Identify the file to be fixed
examples/data/hotel_invoices/extracted_invoice_json /20190119_002_extracted.json

Describe the problem
When cloning the repository on Windows (via GitHub Desktop), the checkout fails because of an invalid path containing a trailing space in a directory name. The problematic path is:
examples/data/hotel_invoices/extracted_invoice_json /20190119_002_extracted.json
Notice the trailing space in the directory extracted_invoice_json (space before the closing slash). Windows prohibits trailing spaces in file/folder names, causing the clone to fail with:
error: invalid path '.../extracted_invoice_json /20190119_002_extracted.json'
fatal: unable to checkout working tree

Describe a solution
Rename the directory extracted_invoice_json (with trailing space) to extracted_invoice_json (no trailing space) in the repository.

Screenshots
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions