fix(deploy): rename release branch prefix to releases to avoid ref collision#245
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
michaeljymsgutierrez
added a commit
that referenced
this pull request
Jun 30, 2026
- [c099dd9][michaeljymsgutierrez]: Updated release version from v2.9.0 to v2.9.1 - 2026-07-01 02:27:36 - [9ca0c99][Chael Gutierrez]: fix(deploy): rename release branch prefix to releases to avoid ref collision (#245) - 2026-07-01 02:26:00 - [f823754][Chael Gutierrez]: chore(deps): fix dependabot security alerts - upgrade vite, vitest, form-data and markdown-it (#244) - 2026-07-01 01:55:56 - [2fcec47][Chael Gutierrez]: chore(deploy): add pre-flight checks, dry-run mode, canary sync, path safety and fail-fast (#243) - 2026-07-01 01:36:47 - [8cf2be1][Chael Gutierrez]: test(units): improve test structure and expand coverage across all unit modules (#242) - 2026-07-01 00:38:33 - [81e929f][Chael Gutierrez]: docs(contributing): add branch purposes, flow diagram, and toc updates (#241) - 2026-06-29 02:27:20 - [9e02459][Chael Gutierrez]: docs(contributing): add CONTRIBUTING.md and link from README (#240) - 2026-06-29 02:07:47 - [b8e9297][Chael Gutierrez]: chore(deps): upgrade production dependencies (#239) - 2026-06-24 02:57:14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
During a
stable:patchdeploy attempt, the script failed with a fatal git ref collision:Git cannot create a branch named
release/vX.X.Xwhen a permanent branch namedreleasealready exists - on the filesystem,releasewould need to be both a ref file and a directory simultaneously. This caused the deploy to fail mid-run and left uncommitted changes behind in the working tree.The fix renames the temporary versioned branch prefix in
deploy.shfromrelease/toreleases/(plural), which avoids the collision entirely.CONTRIBUTING.mdis updated to keep the docs consistent with the actual branch naming used during deploys.Github Issue: N/A
Changes
deploy.sh- renamed allrelease/$LATEST_VERSIONbranch references toreleases/$LATEST_VERSION(8 occurrences acrosspublish_release_version_branchandcleanup_release_version_branch)CONTRIBUTING.md- updated 4 references to match the corrected branch naming: Mermaid flow diagram node, Releasing Phase description, branch type table, and branch naming exampleScreenshots/Images
N/A - no UI changes.
How Has This Been Tested?
./deploy.sh --dry-run stable:patchexecuted successfully with no errors after the fix was applied, confirming the ref collision no longer occurs.Checklist
CONTRIBUTING.mdupdated to matchreleases/prefix).Reviewer Guidance
deploy.shfromrelease/toreleases/. This prevents the fatal ref collision when a permanentreleasebranch exists alongside a versionedreleases/vX.X.Xbranch.CONTRIBUTING.mdchanges are purely cosmetic - keeping docs in sync with the script behavior../deploy.sh --dry-run stable:patchand confirm it prints[dry-run] git checkout -b releases/vX.X.Xwith no errors.