fix: publish current TCS branch to registered target

This commit is contained in:
冰朔 2026-09-09 13:50:48 +08:00
commit be264410d2
2 changed files with 2 additions and 2 deletions

View file

@ -600,7 +600,7 @@ export async function finalize(options) {
options.repository || git(worktree, ["config", "--get", "remote.origin.url"]),
);
const branch = normalizeBranch(options.target || verified.branch);
if (branch !== verified.branch) throw new Error("CHECKED_OUT_BRANCH_MISMATCH");
if (branch !== verified.branch && !currentTcsBinding) throw new Error("CHECKED_OUT_BRANCH_MISMATCH");
const publicSnapshot = validatePublicSnapshotBeforePublish(worktree, repository);
let publishRequestId = null;