Skip to content

fix: parse @ref suffix from git URLs in classifySpecifier#162

Merged
ben-rogerson merged 3 commits into
mainfrom
fix/git-url-tag-suffix-not-parsed
May 13, 2026
Merged

fix: parse @ref suffix from git URLs in classifySpecifier#162
ben-rogerson merged 3 commits into
mainfrom
fix/git-url-tag-suffix-not-parsed

Conversation

@ben-rogerson
Copy link
Copy Markdown
Owner

Summary

The templates README documents tag/branch pinning via url@v2.0.0 syntax, but classifySpecifier was treating the suffix as part of the URL. Now the resolver extracts @ref into a separate field and passes it to cloneToTemp, so git clone receives the correct reference without the unparsed suffix.\n\nAdds tests for HTTPS and SSH-style git URLs with @ref suffixes.

Test plan

  • pnpm typecheck
  • pnpm lint
  • pnpm test

The templates README documents tag/branch pinning via `url@v2.0.0` syntax, but classifySpecifier was treating the suffix as part of the URL. Now the resolver extracts @ref into a separate field and passes it to cloneToTemp, so git clone receives the correct reference without the unparsed suffix.\n\nAdds tests for HTTPS and SSH-style git URLs with @ref suffixes.
@ben-rogerson ben-rogerson enabled auto-merge (squash) May 13, 2026 22:23
@ben-rogerson ben-rogerson merged commit ad8308f into main May 13, 2026
1 check passed
@ben-rogerson ben-rogerson deleted the fix/git-url-tag-suffix-not-parsed branch May 13, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant