alpha
Login
or
Join now
xeiaso.net
/
objgit
Star
10
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Git backed by object storage because you can't stop me
git
object-storage
kefka
Star
10
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
objgit
/
cmd
/
at
main
1 folder
Xe Iaso
fix(protocol): heal dangling HEAD on load and after push
6w ago
a488d3c7
objgitd
fix(protocol): heal dangling HEAD on load and after push Repositories initialized with HEAD -> refs/heads/main (the project default) but populated by pushing a repo with a different default branch (golang/go uses master) end up with HEAD pointing at a nonexistent branch. Git clients cannot check out a worktree and warn: "remote HEAD refers to nonexistent ref, unable to checkout". Fix: repoint HEAD at an existing branch when its symbolic target is missing. Prefer refs/heads/main, then master, then trunk; fall back to the lexicographically smallest branch. Heal is idempotent — a detached HEAD, already-valid HEAD, or branch-less repo is left untouched. Heal on every repository load (fixes repos already in the bucket with no re-push) and after successful receive-pack (fixes new pushes immediately). Both call sites are now guarded by ensureHEAD(), which is no-op when HEAD is already valid. Fixes: #99 (clone checkout abort with dangling HEAD warning) Assisted-by: Claude Opus 4.8 via claude.ai/code
1 month ago