Skip to content

fix(core): materialize full git refs#32903

Closed
dannyward630 wants to merge 1 commit into
anomalyco:devfrom
dannyward630:fix/git-reference-full-refs
Closed

fix(core): materialize full git refs#32903
dannyward630 wants to merge 1 commit into
anomalyco:devfrom
dannyward630:fix/git-reference-full-refs

Conversation

@dannyward630

Copy link
Copy Markdown

Issue for this PR

Closes #32861

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Allows repository references to materialize full git refs such as refs/tags/effect@4.0.0-beta.65, while preserving existing branch behavior.

Full refs are fetched into an origin-scoped tracking ref and checked out detached instead of trying to create a local branch named after the full ref. Branch names continue to fetch and check out as local branches.

How did you verify your code works?

  • npx --yes bun@1.3.14 test test/git.test.ts test/repository-cache.test.ts test/repository.test.ts in packages/core
  • npx --yes bun@1.3.14 run typecheck in packages/core

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Potential Duplicates Found

  1. PR fix(repository): support full git refs #32898 - fix(repository): support full git refs

  2. PR fix(core): support reference refs #32863 - fix(core): support reference refs

These PRs all deal with materialization and support of full git references (tags, branches, etc.). PR #32898 in particular has an identical focus on "support full git refs" and should be checked to ensure this PR (#32903) isn't duplicating that work.

@dannyward630

Copy link
Copy Markdown
Author

Closing as duplicate of #32863, which already covers full/reference ref support for #32861.

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.

Git references do not support tag or full refs

1 participant