Page MenuHomePhabricator

[DRAFT] Parse the Git wire protocol in receive-pack
Changes PlannedPublic

Authored by epriestley on May 20 2016, 6:14 PM.
Tags
None
Referenced Files
F14042325: D15954.diff
Tue, Nov 12, 2:37 AM
F14027367: D15954.diff
Fri, Nov 8, 6:47 AM
F13957565: D15954.id.diff
Oct 14 2024, 9:59 AM
Unknown Object (File)
Oct 9 2024, 3:52 AM
Unknown Object (File)
Oct 9 2024, 3:52 AM
Unknown Object (File)
Oct 7 2024, 7:37 PM
Unknown Object (File)
Oct 2 2024, 6:06 PM
Unknown Object (File)
Sep 23 2024, 11:48 PM
Subscribers

Details

Summary

Ref T5000. Git's protocol is mostly fairly parsable. It has PACK blobs which are trickier to parse, but we don't currently need to decode them (and I think we may never need to decode them: we only need to rewrite refs and response codes, not object content).

To rewrite the actual response, we only need to rewrite this:

0033ng refs/heads/master pre-receive hook declined\n

...into this:

0019ok refs/heads/master \n

...which is pretty reasonable. This doesn't emit or interpret frames and isn't suitable to upstream since it also writes all of the protocol out to tempfiles, but I'm reasonably confident I can estimate T5000 now.

Test Plan

N/A

Diff Detail

Repository
rP Phabricator
Branch
git1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 12284
Build 15527: Run Core Tests
Build 15526: arc lint + arc unit