fbennett / legal-resource-registry

The Legal Resource Registry has moved!
https://github.com/Juris-M/legal-resource-registry
BSD 2-Clause "Simplified" License
15 stars 8 forks source link

Cannot checkout repo under Windows #10

Open zuphilip opened 5 years ago

zuphilip commented 5 years ago

It seems that under Windows some folder names are not allowed and thereby I cannot checkout this repository fully:

$ git clone https://github.com/fbennett/legal-resource-registry.git
Cloning into 'legal-resource-registry'...
remote: Enumerating objects: 101571, done.
remote: Total 101571 (delta 0), reused 0 (delta 0), pack-reused 101571
Receiving objects: 100% (101571/101571), 12.30 MiB | 519.00 KiB/s, done.
Resolving deltas: 100% (36632/36632), done.
fatal: cannot create directory at 'data/courts/vn/ba.ria.vung.tau/con.dao': Invalid argument
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry the checkout with 'git checkout -f HEAD'

I am not sure what can be done about this, but I just wanted to report...

zuphilip commented 5 years ago

http://kizu514.com/blog/forbidden-file-names-on-windows-10/

fbennett commented 5 years ago

Wow, that's quite a find! Who would have thought. I'll tie in some protection to prevent those names from being used ... but I'm not sure how Windows will behave if the names are still in history ... in the worst case, we may need to scrub git history and force-push a fresh checkin.

Wild.