@lenne.tech/cli 1.23.0 → 1.24.0
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.
|
@@ -376,9 +376,10 @@ const NewCommand = {
|
|
|
376
376
|
}
|
|
377
377
|
return `created server symlink ${name}`;
|
|
378
378
|
}
|
|
379
|
-
// Git initialization (after npm install which is done in setupServer)
|
|
379
|
+
// Git initialization (after npm install which is done in setupServer).
|
|
380
|
+
// When cwd is not inside a repo, `git rev-parse` exits 128 — treat as false.
|
|
380
381
|
if (git) {
|
|
381
|
-
const inGit = (_2 = (yield system.run('git rev-parse --is-inside-work-tree'))) === null || _2 === void 0 ? void 0 : _2.trim();
|
|
382
|
+
const inGit = (_2 = (yield system.run('git rev-parse --is-inside-work-tree 2>/dev/null || echo false'))) === null || _2 === void 0 ? void 0 : _2.trim();
|
|
382
383
|
if (inGit !== 'true') {
|
|
383
384
|
// Determine initGit with priority: CLI > config > interactive
|
|
384
385
|
let initializeGit;
|