MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / advertisement

Function advertisement

e2e/scenarios/custom-tools.test.ts:49–58  ·  view source on GitHub ↗
(sha: string)

Source from the content-addressed store, hash-verified

47};
48
49const advertisement = (sha: string): Uint8Array =>
50 concat([
51 pktLine("# service=git-upload-pack\n"),
52 FLUSH,
53 pktLine(
54 `${sha} HEAD\0symref=HEAD:refs/heads/main multi_ack side-band-64k thin-pack ofs-delta\n`,
55 ),
56 pktLine(`${sha} refs/heads/main\n`),
57 FLUSH,
58 ]);
59
60const readFixture = async () => {
61 const dir = join(import.meta.dirname, "..", "fixtures", "custom-tools-git");

Callers 1

Calls 2

concatFunction · 0.70
pktLineFunction · 0.70

Tested by

no test coverage detected