Git transport
Git transport
How git talks to Ghost over HTTP and SSH, and the bugs that shaped how bodies are read.
Prerequisite: Architecture. Pairs with Storage: this chapter gets bytes in and out; Storage decides what they mean.
Git over HTTP
What git actually sends over the wire, pkt-lines, and the three routes Ghost serves for it.
Authentication for git
How a git client proves who it is, how a repository is authorized, and why a 401 must carry a specific header.
Bodies, streams and the probe
Three bugs that shaped how Ghost reads a push body, and the rules they left behind.
Fetch and clone
The read path: materialize, advertise, stream a pack back.
SSH
A second transport onto the same services, with the same access decision and the same commit point.