mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 09:14:33 +00:00
fix(metablog-ingest-site): Handle .git repos with unborn branch (no commits): - Use git rev-parse --verify HEAD (exits non-zero on unborn branch) instead of rev-parse HEAD (which returns "HEAD" string even with no commits) - Add fall-through path: .git exists + no commits → git symbolic-ref HEAD refs/heads/main + commit + push (same as fresh-init path) test: Add tests/scripts/test-metablog-ingest.sh smoke test: - Step 1: dry-run --limit 3 verifies report total=3 - Step 2: live --limit 3 accepts any ok+skip combo >= 3 - Step 3: idempotent re-run asserts all 3 skip-already-current - Step 4: git ls-remote via MOCHAbin SSH verifies remote HEAD exists - Step 5: clone+diff via MOCHAbin SSH (diff --exclude=.git) verifies clone == source Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| test-build-filter.sh | ||
| test-metablog-ingest.sh | ||
| test-tier-manifest.sh | ||