ebook2audiobook icon indicating copy to clipboard operation
ebook2audiobook copied to clipboard

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

Open TheLonelyAdventurer opened this issue 2 months ago • 7 comments

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

TheLonelyAdventurer avatar Dec 27 '24 13:12 TheLonelyAdventurer