Skip to content

hooks: Add support for proc-receive hook

Karthik Nayak requested to merge kn-proc-receive into master

Part 1/N

The proc-receive hook allows us to overrtake the internal working of git-receive-pack(1). This means that instead of having git-receive-pack doing reference updates directly on the disk. The proc-receive hook will be called instead. The proc-receive hook then adds an invocation to a registry. This invocation can be received by RPCs (those which invoke git-receive-pack(1)) and they can then accept/reject reference updates. The accepts/rejects are then streamed to the stdout, which is read by the git binary and responded to the user via git-receive-pack(1).

This MR adds the registry and the code to parse the stdin and stdout of the git binary. Subsequent MR will add the ProcReceive RPC and the required glue to use the code in this MR.

Part of: #4515 (closed)

Edited by Karthik Nayak

Merge request reports

Loading