Kaiteki-Fedi/Kaiteki

Repository cannot be checked out because of symlink

connyduck opened this issue · 3 comments

What happened?

git clone https://github.com/Kaiteki-Fedi/Kaiteki.git

Cloning into 'Kaiteki'...
remote: Enumerating objects: 26170, done.
remote: Counting objects: 100% (6232/6232), done.
remote: Compressing objects: 100% (1651/1651), done.
remote: Total 26170 (delta 4527), reused 6116 (delta 4464), pack-reused 19938
Receiving objects: 100% (26170/26170), 15.36 MiB | 4.09 MiB/s, done.
Resolving deltas: 100% (18288/18288), done.
error: unable to create symlink README.md: File name too long
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 :/'

git restore --source=HEAD :/ shows the same error again.

Expected behavior

I can checkout the repository without problems.

How to reproduce

Just run git clone https://github.com/Kaiteki-Fedi/Kaiteki.git on MacOs I guess?

What platform are you seeing the issue on?

None

Additional context

I'm on MacOS 14.3.1 and git --version says git version 2.39.3 (Apple Git-145) and I never seen this error before. Why is the Readme even a symlink?

Checkout without symlinking enabled.

git clone --config core.symlinks=false https://github.com/Kaiteki-Fedi/Kaiteki.git works, thanks!
Maybe this info can be added to BUILDING.md?

This is not a normal state. This is a bug, hence it will not be included in BUILDING.md.