wetneb / openrefine-wikibase

This repository has migrated to:
https://gitlab.com/nfdi4culture/ta1-data-enrichment/openrefine-wikibase
Other
100 stars 24 forks source link

Rename or Remove file causing a git checkout failure #99

Closed thadguidry closed 3 years ago

thadguidry commented 3 years ago

Hi @wetneb

The file:

https://github.com/wetneb/openrefine-wikibase/blob/master/tests/entities/Category:United%20Kingdom-related%20properties.json

causes a checkout error for non-Linux users.

Cloning into 'E:\GitHubRepos\openrefine-wikibase'...
remote: Enumerating objects: 1525, done.        
remote: Counting objects: 100% (1525/1525), done.        
remote: Compressing objects: 100% (328/328), done.        
remote: Total 2413 (delta 1185), reused 1500 (delta 1173), pack-reused 888        
Receiving objects: 100% (2413/2413), 5.96 MiB | 19.38 MiB/s, done.
Resolving deltas: 100% (1815/1815), done.
error: invalid path 'tests/entities/Category:United Kingdom-related properties.json'
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 :/'

I suggest renaming the file to a better convention or removing the file if it is no longer needed for tests.

wetneb commented 3 years ago

Makes sense, thanks for the report!

thadguidry commented 3 years ago

On Windows, it's failing because of the colon : in the filename which is a reserved char for directories, not files.