Skip to content

git: Forbid main git worktree deletion from worktree picker#52841

Merged
Anthony-Eid merged 3 commits intomainfrom
forbid-main-git-worktree-deletion
Mar 31, 2026
Merged

git: Forbid main git worktree deletion from worktree picker#52841
Anthony-Eid merged 3 commits intomainfrom
forbid-main-git-worktree-deletion

Conversation

@Anthony-Eid
Copy link
Copy Markdown
Contributor

This operation would always fail in the UI because the git binary already disallowed it. This PR just makes the UI more inline with what's actually valid

Self-Review Checklist:

  • I've reviewed my own diff for quality, security, and reliability
  • Unsafe blocks (if any) have justifying comments
  • The content is consistent with the UI/UX checklist
  • Tests cover the new/changed behavior
  • Performance impact has been considered and is acceptable

Release Notes:

  • git: Forbid main git worktree deletion from git worktree picker

This operation would always fail in the UI because the git binary
already disallowed it. This PR just makes the UI more inline with what's
actually valid
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Mar 31, 2026
@zed-community-bot zed-community-bot bot added the staff Pull requests authored by a current member of Zed staff label Mar 31, 2026
Co-authored-by: Eric Holk <eric@zed.dev>
@Anthony-Eid Anthony-Eid enabled auto-merge (squash) March 31, 2026 17:34
@Anthony-Eid Anthony-Eid merged commit 89732f1 into main Mar 31, 2026
30 checks passed
@Anthony-Eid Anthony-Eid deleted the forbid-main-git-worktree-deletion branch March 31, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement staff Pull requests authored by a current member of Zed staff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants