Microsoft/vscode

Git - better support for bare repositories

Open

#267.606 geöffnet am 20. Sept. 2025

Auf GitHub ansehen
 (6 Kommentare) (3 Reaktionen) (1 zugewiesene Person)TypeScript (10.221 Forks)batch import
buggithelp wanted

Repository-Metriken

Stars
 (74.848 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 14h 20m) (999 gemergte PRs in 30 T)

Beschreibung

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.104.1 (Universal)
  • OS Version: macOS 15.6.1

I'm not sure if it's a bug or intentional behaviour, however VSCode doesn't seem to pick up worktrees and repositories when using --bare flag to initialise or copy a repo. I also tried different setups of putting worktrees inside or outside the bare one to no avail.

Steps to Reproduce:

  1. Run the following commands to setup the test repo
git clone --bare org-14957082@github.com:openai/agents.md.git
cd agents.md.git
git worktree add trees/test-branch
git worktree add trees/another-test-branch
cd trees/test-branch
code --disable-extensions .
  1. Open SCM tab and observe that there's only one worktree recognised, and it's not attached to a repo.

Contributor Guide