fix: keep the branch binding in the gitsync-settings override refusal hint

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Ruben Fiszel
2026-11-05 11:22:45 +01:00
co-authored by Claude Opus 5.5
parent fd14fff8ee
commit 1093e4a7fa
+1 -1
View File
@@ -460,7 +460,7 @@ export async function pullGitSyncSettings(
if (taken.length > 0) {
throw new Error(
`No workspace entry in wmill.yaml matches workspace '${workspace.workspaceId}', and git branch '${currentBranch}' is already used by ${taken.join(", ")}. ` +
`Name the entry for this workspace '${workspace.workspaceId}' so it can be resolved.`,
`Name the entry for this workspace '${workspace.workspaceId}' and keep 'gitBranch: ${currentBranch}' on it so it can be resolved.`,
);
}
overrideTarget = currentBranch;