Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Repository cannot be checked out because of symlink #508

Open
connyduck opened this issue Mar 1, 2024 · 3 comments
Open

Repository cannot be checked out because of symlink #508

connyduck opened this issue Mar 1, 2024 · 3 comments
Labels
bug Something isn't working meta Issues about Kaiteki itself

Comments

@connyduck
Copy link

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?

@Craftplacer
Copy link
Member

Checkout without symlinking enabled.

@Craftplacer Craftplacer changed the title Can't checkout the project on MacOS Repository cannot be checked out because of symlink Mar 1, 2024
@Craftplacer Craftplacer added the meta Issues about Kaiteki itself label Mar 1, 2024
@connyduck
Copy link
Author

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

@Craftplacer
Copy link
Member

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

@github-project-automation github-project-automation bot moved this from Inbox to Done in Bugs, Issues and Errors Mar 1, 2024
@Craftplacer Craftplacer reopened this Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working meta Issues about Kaiteki itself
Projects
Status: Done
Development

No branches or pull requests

2 participants