]> quire.kejadlen.dev Git - quire.git/commit
Push actual refs to mirror instead of hardcoding main
authorAlpha Chen <alpha@kejadlen.dev>
Mon, 27 Apr 2026 15:29:38 +0000 (15:29 +0000)
committerAlpha Chen <alpha@kejadlen.dev>
Mon, 27 Apr 2026 15:44:55 +0000 (08:44 -0700)
commitb140ce7bc5e922d50b2060ada786269d93378081
treee0ab704ae385b5efc0956820b520b989c86f196e
parente6a673c27f9d5b5964099a7e508785383f6e2149
Push actual refs to mirror instead of hardcoding main

The post-receive hook now parses stdin to find which refs were updated
and pushes only those. This handles repos with any default branch name,
not just main. Deleted refs (all-zero new sha) are skipped.

Assisted-by: GLM-5.1 via pi
src/bin/quire/commands/hook.rs
src/quire.rs