diff --git a/lib/ship-policy.ts b/lib/ship-policy.ts index b57039ccb..2eca8d55c 100644 --- a/lib/ship-policy.ts +++ b/lib/ship-policy.ts @@ -653,10 +653,9 @@ function git(repoRoot: string, args: string[]): { ok: boolean; out: string; err: } /** - * `--base` when given, else the default base (lib/default-base.ts): origin/HEAD's - * branch unless it is the checked-out one, the PR's base, origin/main, origin/master. - * When none resolves it stays `main`, which origin then lacks, so every reader of - * origin/ refuses; when origin/HEAD named the checked-out branch, stderr says why. + * `--base` when given, else the default base (lib/default-base.ts): origin/HEAD's branch unless it is the checked-out + * one, the PR's base, origin/main, origin/master. When none resolves it stays `main`, which origin then lacks, so every + * reader of origin/ refuses; when origin/HEAD named the checked-out branch, stderr says why. */ export function resolveBaseBranch(repoRoot: string, explicit?: string): string { if (explicit && explicit.trim()) return explicit.trim().replace(/^origin\//, '');