romele / git-trace public
62 commits · 1 branch · 1 tag · 1 contributor (top: Romele) · first commit 3d ago · last push 18m ago
hooks/post-receive
#!/bin/sh
# git-trace post-receive hook — webhook dispatch on accepted pushes.
# Installed as <repo>.git/hooks/post-receive by `git-trace mkrepo`
# (or `rehook`). Reads "oldrev newrev refname" lines on stdin,
# queues a 'push' delivery per ref and spawns the detached
# dispatcher. Never blocks the push: hook-post enqueues then
# double-forks the runner.
if [ -n "${GIT_TRACE_BIN:-}" ]; then
"$GIT_TRACE_BIN" hook-post
fi
exit 0