summaryrefslogtreecommitdiff
path: root/sys/src/cmd/git/proto.c
AgeCommit message (Collapse)Author
2023-04-17git/send: correctly delete branches with no local mirrorOri Bernstein
2022-06-11git/get: keep sending what we have until we get an ackOri Bernstein
Git9 was sloppy about telling git what commits we have. We would list the commits at the tip of the branch, but not walk down it, which means we would request too much data if our local branches were ahead of the remote. This patch changes that, sending the tips *and* the first 256 commits after them, so that git can produce a better pack for us, with fewer redundant commits.
2022-05-20git: improve error on short readOri Bernstein
we don't recover from an invalid packet, so just sysfatal with a useful message.
2022-03-17git/fetch: improve detection of dumb http protocolMichael Forney
If the server only supports the dumb protocol, the first 4 bytes of response will be the initial part of the hash of the first ref. The http-protocol documentation says that we should fall back to the dumb protocol when we don't see a content-type of application/x-$servicename-advertisement. Check this before attempting to read a smart git packet.
2021-06-04git: allow local repository directories as remote uri'scinap_lenrek
This is implemented by checking first if the uri is a directory containing the .git/ subdirectory. If this is the case, we fork git/serve serving the repository on a pipe.
2021-05-16git: got git?Ori Bernstein
Add a snapshot of git9 to 9front.