ref:cd0457c558c7d7790074fde91f321dfffc826fc0

feat: add pre_receive_hook to ReceivePack for pre-update authorization

Adds an optional pre_receive_hook callback to ReceivePack.init/2. When provided, the hook is called with the list of ref update commands AFTER pack objects are stored but BEFORE refs are updated on disk. If it returns {:error, reason}, all ref updates are skipped. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
SHA: cd0457c558c7d7790074fde91f321dfffc826fc0
Author: Cole Christensen <cole.christensen@macmillan.com>
Date: 2026-03-18 01:25
Parents: de98eb6
9 files changed +665 -193
Type
.DS_Store +0 −0
ex_git_objectstore +1 −1
@@ -1,1 +1,1 @@
/Users/chaos/src/notifd_src/ex_git_objectstore
mix.exs +1 −1
@@ -21,7 +21,7 @@
[
app: :ex_git_objectstore,
version: "0.1.0",
elixir: "~> 1.17",
elixir: "~> 1.18",
start_permanent: Mix.env() == :prod,
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),