(sha: string)
| 47 | }; |
| 48 | |
| 49 | const 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 | |
| 60 | const readFixture = async () => { |
| 61 | const dir = join(import.meta.dirname, "..", "fixtures", "custom-tools-git"); |
no test coverage detected