ChatProtect icon indicating copy to clipboard operation
ChatProtect copied to clipboard

Issue while cloning

Open cburik opened this issue 6 months ago • 2 comments

There is an issue when trying to clone the repository on windows. I assume it has to do with some of the subdirectories in tests ending in a "." .

> git clone https://github.com/eth-sri/ChatProtect.git
Cloning into 'ChatProtect'...
remote: Enumerating objects: 75834, done.
remote: Counting objects: 100% (4470/4470), done.
remote: Compressing objects: 100% (3822/3822), done.
remote: Total 75834 (delta 1248), reused 652 (delta 648), pack-reused 71364 (from 1)
Receiving objects: 100% (75834/75834), 36.88 MiB | 7.76 MiB/s, done.
Resolving deltas: 100% (8969/8969), done.
error: invalid path 'test/popqa/descriptions/chatgpt/What_color_is_Arsenal_F.C./0.txt'
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 :/'

cburik avatar Jun 18 '25 14:06 cburik

Hey @cburik ,

Thanks for reaching out about this. This seems indeed like an issue for windows users. I will see how it can be addressed, since the naming of the directory is currently relevant for the project.

Meanwhile as a potential workaround, you may be able to download the zip version through the GitHub Web UI and extract only the folders that have no reserved names, or disable core.protectNTFS as suggested in this post

nielstron avatar Jun 18 '25 14:06 nielstron

Thank you for the quick reply, downloading it as a zip is indeed what I did as a workaround. The invalid paths all seem to be in tests, which wasn't necessary to run the tool for me

cburik avatar Jun 19 '25 07:06 cburik