Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't checkout repository on Windows #20

Open
raelb opened this issue Jan 20, 2021 · 5 comments
Open

Can't checkout repository on Windows #20

raelb opened this issue Jan 20, 2021 · 5 comments

Comments

@raelb
Copy link

raelb commented Jan 20, 2021

Hi,

Not sure if this error will happen on other OS, however on Windows, a checkout fails, since one of the folder names contains invalid characters for a Windows file/folder:

fatal: cannot create directory at 'cltk-flat/Modern Works/Works of Eliezer Berkovits/Conversion "According to Halakhah"; What Is It': Invalid argument warning: Clone succeeded, but checkout failed.

Windows does not allow quotes in a file name

@raelb
Copy link
Author

raelb commented Jan 20, 2021

After a bit more research, it looks like these entries need to be fixed in all the various output folders (json, txt, xml etc...)

  1. Works of Eliezer Berkovits/Conversion "According to Halakhah"; What Is It
  2. Works of Eliezer Berkovits/Conversion "According to Halakhah"; What Is It/English
  3. Works of Eliezer Berkovits/Conversion "According to Halakhah"; What Is It/English/Conversion According to Halakhah - What Is It Judaism 23 Fall 1974 467-78.json
  4. Works of Eliezer Berkovits/Conversion "According to Halakhah"; What Is It/English/merged.json

@Eli-Handel
Copy link

This is still an issue. When I tried to get the repository using GitHub Desktop I got the following:

error: invalid path 'cltk-flat/Modern Works/Works of Eliezer Berkovits/Conversion "According to Halakhah"; What Is It/English/Conversion According to Halakhah - What Is It Judaism 23 Fall 1974 467-78.json'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.

@Eli-Handel
Copy link

The same problem also exists in /ios-export/6/.../8.zip

@Eli-Handel
Copy link

warning: the following paths have collided (e.g. case-sensitive paths on a case-insensitive filesystem) and only one from the same colliding group is in the working tree:

Halakhah/Sefer HaChinukh/Hebrew

Sefer HaChinukh -- Torat Emet
sefer HaChinukh -- Torat Emet

Talmud/Bavli/Commentary/Chidushei Halachot/Seder Moed/Chidushei Halachot on Taanit/Hebrew

Vilna Edition
Vilna edition

@idosu
Copy link

idosu commented Sep 22, 2024

You can set core.protectNTFS to false.

Try this:

git clone --no-checkout https://github.com/Sefaria/Sefaria-Export.git
cd Sefaria-Export
git config core.protectNTFS false
git checkout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants