diff --git a/src/cli/config.ts b/src/cli/config.ts index 9a81c3b..d90c3c3 100644 --- a/src/cli/config.ts +++ b/src/cli/config.ts @@ -215,6 +215,11 @@ function resolveBranchDataMode(raw: Record): { mode: BranchData if (typeof value !== "string") throw new Error("branch_data_mode must be a string."); const mode = value.trim().toLowerCase(); if (!mode) return { mode: null, explicit: false }; + if (mode === "none") { + throw new Error( + "Invalid branch_data_mode 'none'. Omit branch_data_mode to create branches without data (the default)." + ); + } if (!BRANCH_DATA_MODE_VALUES.includes(mode as BranchDataMode)) { throw new Error( `Invalid branch_data_mode '${value}'. Allowed values are: ${BRANCH_DATA_MODE_VALUES.join(", ")}.`