zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.91k stars 3.15k forks source link

git worktrees after a `--bare` clone don't work #21210

Open mrnugget opened 5 days ago

mrnugget commented 5 days ago

Check for existing issues

Describe the bug / provide steps to reproduce it

We added support for git worktrees in #20164 but that doesn't seem to cover worktrees that were created from a --bare clone.

See comment here: https://github.com/zed-industries/zed/issues/4670#issuecomment-2500074480

To reproduce:

git clone --bare git@github.com:stefanluptak/stefanluptak.github.io.git
cd stefanluptak.github.io.git
git worktree add main
cd main
zed .

Environment

N/A

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your Zed.log file to this issue.

Zed.log ``` ```
m4salah commented 5 days ago

Looking forward to this issue resolve, the git integration in bare repo is non exists.

hargriffle commented 3 days ago

Did this ever work? I feel like it did - but I could be misremembering 🤔 . Would love it to be implemented! Thank you!