fangorn/ex_git_objectstore
public
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 |
|
||
|
|
mix.exs | +1 −1 |
|
||