[BUG] Marketplace plugin updates accumulate git history instead of staying shallow

Resolved 💬 2 comments Opened Jan 27, 2026 by h315uk3 Closed Feb 28, 2026

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

  1. Install a plugin from marketplace
  2. Update the plugin multiple times over days/weeks
  3. Check .git directory size in the plugin folder
  4. Observe that .git/objects contains 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.

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗