@getmonoceros/workbench 1.37.10 → 1.37.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.js CHANGED
@@ -8365,14 +8365,16 @@ Fix the value in the env file (or the yml).`
8365
8365
  }
8366
8366
  validateOptions(createOpts);
8367
8367
  logger.success(`yml validated ${dim(`(${prettyPath(ymlPath)})`)}`);
8368
- const hasRepos = (createOpts.repos ?? []).length > 0;
8369
- const hasContainerGitUser = parsed.config.git?.user !== void 0;
8368
+ const reposNeedingContainerIdentity = (createOpts.repos ?? []).some(
8369
+ (repo) => !repo.gitUser
8370
+ );
8371
+ const hasResolvedContainerGitUser = containerGitOverride !== void 0;
8370
8372
  const hasDefaultGitUser = globalConfig?.defaults?.git?.user !== void 0;
8371
8373
  const idLogger = {
8372
8374
  info: logger.info,
8373
8375
  warn: logger.warn ?? logger.info
8374
8376
  };
8375
- if (hasRepos || hasContainerGitUser || hasDefaultGitUser) {
8377
+ if (reposNeedingContainerIdentity || hasResolvedContainerGitUser || hasDefaultGitUser) {
8376
8378
  const identity = await collectGitIdentity(targetDir, {
8377
8379
  ...opts.identitySpawn ? { spawn: opts.identitySpawn } : {},
8378
8380
  ...opts.identityPrompt ? { prompt: opts.identityPrompt } : {},
@@ -8971,7 +8973,7 @@ var CLI_VERSION;
8971
8973
  var init_version = __esm({
8972
8974
  "src/version.ts"() {
8973
8975
  "use strict";
8974
- CLI_VERSION = true ? "1.37.10" : "dev";
8976
+ CLI_VERSION = true ? "1.37.12" : "dev";
8975
8977
  }
8976
8978
  });
8977
8979