roboyoshi / datacurator-filetree

a standard filetree for /r/datacurator [ and r/datahoarder ]
https://reddit.com/r/datacurator
MIT License
1.46k stars 137 forks source link

Checkout v0.2 fails ... #50

Closed zone-b closed 4 years ago

zone-b commented 4 years ago

FYI,

Git (for Windows!) cannot checkout the repository due to the below file name:

git clone https://github.com/roboyoshi/datacurator-filetree.git
Cloning into 'datacurator-filetree'...
remote: Enumerating objects: 64, done.
remote: Counting objects: 100% (64/64), done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 634 (delta 10), reused 46 (delta 3), pack-reused 570
Receiving objects: 100% (634/634), 1.62 MiB | 2.01 MiB/s, done.
Resolving deltas: 100% (223/223), done.
**error: invalid path 'root/audio/books/Rowling, J. K./J. K. Rowling - [Harry Potter 01] - Harry Potter and the Philosopher's Stone.m4b'**
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 :/'

Cheers, Borg

roboyoshi commented 4 years ago

Hey @zone-b , thanks a lot for the report. I should def. do cross-os testing so this does not happen, especially when the repository is aimed to be a "standard" that works across multiple systems...!

zone-b commented 4 years ago

Hi roboyoshi, you can easily set up an pre-commit hook: https://github.com/t-b/git-pre-commit-hook-windows-filenames Cheers, Borg

roboyoshi commented 4 years ago

This should be resolved now.