{"version":"2.1.333","anchor":"plugin-git-subdir-clone-skips-the-shallow-fetch-when-the-pin","canonical_anchor":"plugin-git-subdir-clone-skips-the-shallow-fetch-when-the-pin","heading":"Plugin installs from pinned git-subdir sources clone differently and skip needless fetches","tier":"notice","area":"Plugins","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/plugin-git-subdir-clone-skips-the-shallow-fetch-when-the-pin","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Plugin installs from pinned git-subdir sources clone differently and skip needless fetches\n\nGit clones for plugin sources now pass --origin origin, skip the fetch when the pinned commit is already checked out, and tag failures more clearly\n\n**What**\n\nSome plugins are installed from a sub-folder of a git repository and pinned to one exact commit, identified by its SHA. This is called a git-subdir source. Claude Code changed how it downloads these, which git calls cloning.\n\n- When a clone uses both the no-checkout and branch options, the clone now includes `--origin origin`. For pinned sources this replaces `--branch`.\n\n- If the copy already sits on the pinned SHA, Claude Code skips the extra shallow fetch. A shallow fetch is a quick download of only recent history. Before, it always fetched the SHA.\n\n- If the clone fails with code 127 because git is not installed, the error is tagged `git_missing`, and the message says \"git-subdir plugin source requires git to be installed and on PATH.\"\n\n- A missing source path is tagged `source_missing`.\n\n**Why**\n\nInstalling plugins from pinned git-subdir sources makes fewer network calls, and the remote name in these clones is always `origin`. If git is missing, the error says so plainly.\n\n- Area: Plugins\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}