Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭 适合新手
#6,363 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
git, markdown, shell

调研方向

从 plugins/source-control/skills/worktree/context/cleanup.md 开始,定位在 git worktree remove 之前运行的 project-scope plugin-record reap(claude plugin uninstall -s project)。确认它会改写被跟踪的 .claude/settings.json(去掉 enabledPlugins、重排键)并让 tree 处于 dirty。完成条件:先前干净的 worktree 仍可在不使用 --force 的情况下 remove(恢复被跟踪的 settings 文件,或对非跟踪的 scope 执行 uninstall),或者该流程文档说明了 reap 之后为何必须使用 --force。

由索引模型根据 Issue 内容生成。

描述

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

主要语言
Shell
星标
22
派生
2
平均合并
5 小时 4 分钟
30 天内合并 PR
825

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

melodic-software/claude-code-plugins 的其他 Issue

查看 melodic-software/claude-code-plugins 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。