[BUG] Marketplace plugin updates accumulate git history instead of staying shallow
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
After repeatedly updating a marketplace plugin, the local .git/objects directory grows significantly. It appears git history is being accumulated rather than maintaining a shallow clone.
What Should Happen?
I expected the shallow clone state to be maintained after updates, but is this an incorrect expectation?
Error Messages/Logs
Steps to Reproduce
Steps to Reproduce
- Install a plugin from marketplace
- Update the plugin multiple times over days/weeks
- Check
.gitdirectory size in the plugin folder - Observe that
.git/objectscontains many more commits than expected for a shallow clone
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.20
Platform
Anthropic API
Operating System
Other Linux
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
For plugins with large assets in commit history, long-term users accumulate historical blobs even if those assets were later removed.
I'd appreciate any clarification on whether this is expected.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗