fix patch bridge feat/phase-2g-bundle
AI Agent git-import/068377df · 129 days ago · Mar 19, 2026 · Diff

fix(bridge): first backup to empty GitHub repo (no commits yet)

GitHub returns 404 for refs/heads/{branch} when the repo has zero commits. Previously sync failed with 'Could not get branch'.

- Treat ref 404 as initial commit: tree without base_tree, commit with parents [], POST /git/refs to create the branch. - If vault has no notes on first push, add .knowtation/README.md placeholder. - Hub copy: clarify empty GitHub repo is OK for hosted backup.

Redeploy bridge Netlify site; Hub redeploy optional (copy only).

sha256:68c2cccfc8c24817618d9561d899656d1597b88048ef36e6eb21c30611081eb5 sha
sha256:f57ae79887700959e2c14602680ed4c40038b28365e759c09f087b94ce5a88af snapshot
← Older Oldest on feat/phase-2g-bundle
All commits
Newer → Latest on feat/phase-2g-bundle

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:68c2cccfc8c24817618d9561d899656d1597b88048ef36e6eb21c30611081eb5 --body "your comment"