summaryrefslogtreecommitdiff
path: root/sys/src/cmd/git/util.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2022-03-17 01:41:09 +0000
committerMichael Forney <mforney@mforney.org>2022-03-17 01:41:09 +0000
commit8bd5be7c707b979caa277637cadf356b78c2edb5 (patch)
tree64be81d76e5dcdd0f9f4b9c72e38b970d008ef10 /sys/src/cmd/git/util.c
parent2e47badb88312c5c045a8042dc2ef80148e5ab47 (diff)
git/fetch: improve detection of dumb http protocol
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.
Diffstat (limited to 'sys/src/cmd/git/util.c')
0 files changed, 0 insertions, 0 deletions