Skip to content

[BUG] git clone issues due to filenames with special characters #1055

@amosyou

Description

@amosyou

Describe the bug

When cloning the repo, I'm encountering some issues where certain tests files are unable to be created. Here's the error trace.

Cloning into 'lighteval'...                                                                                                                       
Warning: Permanently added 'github.com' (ED25519) to the list of known hosts.                                                                     
remote: Enumerating objects: 6529, done.                                                                                                          
remote: Counting objects: 100% (2557/2557), done.                                                                                                 
remote: Compressing objects: 100% (1076/1076), done.                                                                                              
remote: Total 6529 (delta 1983), reused 1481 (delta 1481), pack-reused 3972 (from 3)                                                              
Receiving objects: 100% (6529/6529), 3.07 MiB | 8.07 MiB/s, done.                                                                                 
Resolving deltas: 100% (4034/4034), done.                                                                                                         
Updating files: 100% (533/533), done.                                                                                                             
error: unable to create file tests/reference_details/SmolLM2-1.7B-Instruct-vllm/details_agieval:lsat-rc|0_2025-11-05T14-52-08.352779.parquet: Inva
lid argument                                                                                                                                      
error: unable to create file tests/reference_details/SmolLM2-1.7B-Instruct-transformers/details_arc:challenge|25_2025-11-05T14-43-47.148527.parque
t: Invalid argument                                                                                                                               
error: unable to create file tests/reference_details/SmolLM2-1.7B-Instruct-vllm/details_arc:challenge|25_2025-11-05T14-52-08.352779.parquet: Inval
id argument                                                                                                                                       
error: unable to create file tests/reference_details/SmolLM2-1.7B-Instruct-vllm/details_hellaswag|10_2025-11-05T14-52-08.352779.parquet: Invalid a
rgument                                                                                                                                           
error: unable to create file tests/reference_details/SmolLM2-1.7B-Instruct-vllm/details_agieval:sat-en|0_2025-11-05T14-52-08.352779.parquet: Inval
id argument
...
error: unable to create file tests/reference_details/SmolLM2-1.7B-Instruct-transformers/details_agieval:aqua-rat|0_2025-11-05T14-43-47.148527.parq
uet: Invalid argument
Filtering content: 100% (61/61), 65.52 MiB | 21.98 MiB/s, done.
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 believe this is due to the filenames with contains special characters like "|" and ":". For example, running this example also gives a similar error.

mkdir "example_|"
mkdir: cannot create directory ‘example_|’: Invalid argument
mkdir "example_:"
mkdir: cannot create directory ‘example_:’: Invalid argument

To Reproduce

git clone git@github.com:huggingface/lighteval.git

Expected behavior

git clone should work.

Version info

Linux (amd64)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions