{"version":"2.1.337","anchor":"git-clone-error-for-sha-256-commit-ids","canonical_anchor":"git-clone-error-for-sha-256-commit-ids","heading":"Clearer error when a 64-character commit id is used for a repository that uses 40","tier":"notice","area":"Git","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337\/e\/git-clone-error-for-sha-256-commit-ids","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.337","markdown":"### Clearer error when a 64-character commit id is used for a repository that uses 40\n\nUsing a 64-digit commit id with a repository whose ids have 40 digits now gives a clear error suggesting a branch, tag or 40-digit id\n\n**What**\n\nEvery git commit has an id made of hexadecimal digits, which is 40 digits long in most repositories and 64 in repositories using the newer SHA-256 format. When a 64-digit id is given for a repository whose ids have 40 digits, Claude Code now reports that this repository's commit ids have 40 digits, not 64. It suggests starting from a branch, a tag or a 40-digit commit id instead.\n\n**Why**\n\nThis replaces a generic clone failure with a message that says what went wrong and how to fix it.\n\n- Area: Git\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}