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

Windows: can't clone repository because of reserved file name #126

Open
TheLonelyAdventurer opened this issue Dec 27, 2024 · 7 comments
Open

Comments

@TheLonelyAdventurer
Copy link

As per https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file , there are limitations on file & directory names.

In particular, when cloning from Windows:

git clone https://github.com/DrewThomasson/ebook2audiobook.git
Cloning into 'ebook2audiobook'...
remote: Enumerating objects: 2532, done.
remote: Counting objects: 100% (614/614), done.
remote: Compressing objects: 100% (260/260), done.
remote: Total 2532 (delta 468), reused 363 (delta 354), pack-reused 1918 (from 2)
Receiving objects: 100% (2532/2532), 202.82 MiB | 6.39 MiB/s, done.
Resolving deltas: 100% (1311/1311), done.
error: invalid path 'voices/con/adult/female/.gitkeep'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'

The path contains the reserved word "con" which cannot be used.

I'd suggest renaming the folder to something else

@ROBERT-MCDOWELL
Copy link
Collaborator

"con" is a iso-3 language, I had to run a command to bypass this limitation on windows but don't recall it.
let me search back...

@ROBERT-MCDOWELL
Copy link
Collaborator

I will modify the "con" folder to "con-" for this language to the next update today or tomorrow so you won't have this issue anymore

@smallbutfine
Copy link

For these kind of problems, it is possible to clone and checkout in WSL ('Linux subsystem'), worked with Debian in Win10, the folder will be created.

@DrewThomasson DrewThomasson added windows Related to the windows operating system bug Something isn't working labels Dec 28, 2024
@LexiconCode
Copy link

LexiconCode commented Dec 29, 2024

All Right, here is what the error may look like for someone else.

"C:\Program Files\Git\bin\git.exe" checkout -B "main" "up/main"
error: invalid path 'voices/con/adult/female/.gitkeep'
error: invalid path 'voices/con/adult/male/.gitkeep'
error: invalid path 'voices/con/child/female/.gitkeep'
error: invalid path 'voices/con/child/male/.gitkeep'
error: invalid path 'voices/con/elder/female/.gitkeep'
error: invalid path 'voices/con/elder/male/.gitkeep'
error: invalid path 'voices/con/teen/female/.gitkeep'
error: invalid path 'voices/con/teen/male/.gitkeep'
Done

@ROBERT-MCDOWELL
Copy link
Collaborator

ROBERT-MCDOWELL commented Dec 29, 2024

this is a duplicate of #126
fixed in the next git update and release tomorrow

@LexiconCode
Copy link

@ROBERT-MCDOWELL
FYI #126 references this issue so it's not duplicate. Hopefully this issue can be reopened until there's confirmed commit to resolve the issue.

@ROBERT-MCDOWELL
Copy link
Collaborator

@LexiconCode v2.1.0 update/release is on rails with the fix.

@ROBERT-MCDOWELL ROBERT-MCDOWELL added fixed in next update (pending) and removed bug Something isn't working windows Related to the windows operating system labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants