@wipcomputer/wip-ai-devops-toolbox 1.9.71-alpha.1 → 1.9.71-alpha.2
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/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/tools/wip-branch-guard/guard.mjs +8 -0
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -413,6 +413,14 @@ This is a warning, not a block. If you need to create it here, retry.`);
|
|
|
413
413
|
process.exit(0);
|
|
414
414
|
}
|
|
415
415
|
|
|
416
|
+
// Allow everything in repos with zero commits (bootstrap)
|
|
417
|
+
try {
|
|
418
|
+
const hasCommits = execSync('git rev-parse HEAD', { cwd: repoDir, stdio: 'pipe' });
|
|
419
|
+
} catch {
|
|
420
|
+
// No commits yet. Allow the first commit so the repo can be bootstrapped.
|
|
421
|
+
process.exit(0);
|
|
422
|
+
}
|
|
423
|
+
|
|
416
424
|
if (branch !== 'main' && branch !== 'master' && worktree) {
|
|
417
425
|
// On a branch AND in a worktree. Correct workflow. Allow.
|
|
418
426
|
process.exit(0);
|