Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

fix(source-control): worktree cleanup's plugin-record reap dirties the tree, so plain removal always fails

Đang mở Phù hợp với người mới
#6,363 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
git, markdown, shell

Hướng nghiên cứu

Bắt đầu trong plugins/source-control/skills/worktree/context/cleanup.md tại project-scope plugin-record reap (claude plugin uninstall -s project) chạy trước git worktree remove. Xác nhận nó viết lại .claude/settings.json đang được theo dõi (bỏ enabledPlugins, sắp xếp lại các khóa) và để tree dirty. Xong khi một worktree trước đó sạch vẫn remove được mà không cần --force (khôi phục tệp settings đang theo dõi hoặc uninstall đối với một scope không được theo dõi), hoặc quy trình ghi rõ vì sao --force là bắt buộc sau một reap.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

needs-human needs-triage

Problem

plugins/source-control/skills/worktree/context/cleanup.md reaps project-scope plugin records before removing a worktree. The reap runs claude plugin uninstall -s project from inside the tree, which rewrites the tracked .claude/settings.json: it drops the enabledPlugins entries and reorders the keys. The tree is then dirty, so the plain git worktree remove the procedure expects fails, and every removal needs --force.

Observed on all nine #6225 sweep worktrees, eight of which were clean before the reap.

Expected

After the reap, restore the tracked settings file (or run the uninstall against a non-tracked scope) so a clean tree still removes without --force. Alternatively, have the procedure say that --force is expected after a reap and why.

Related

#6225

Ngôn ngữ chính
Shell
Star
22
Fork
2
Merge trung bình
5 giờ 11 phút
Pull request đã merge (30 ngày)
838

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của melodic-software/claude-code-plugins

Tất cả issue của melodic-software/claude-code-plugins

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.