Versions 76 to 318
new file, 249 lines
12+
17+
18+for (const mode of ["success", "limit", "fatal", "server-intake", "text-intake", "binary-limit"])
24+ const blob = mode === "text-intake" ? Buffer.from("x".repeat(16383) + "🚀é中".repeat(20000)) : randomBytes(400000);
82+ packet(Buffer.concat([Buffer.from([2]), Buffer.from("Counting objects: 50% (1/2)\n".repeat(200))])),
85+ uploadParts.push(packet(Buffer.concat([Buffer.from([3]), Buffer.from("fixture remote failure")])));
118+ assert.ok(uploadChunksRead < 64, `pack source read ahead ${uploadChunksRead} chunks before disk consumption`);
169+ if (mode === "text-intake") assert.equal(found!.commits[0]!.files["large.bin"], blob.toString("utf8"));
175+ for (const table of ["git_pack_spool", "git_pack_resolve", "git_object_meta", "git_object_bytes"])
190+ await assert.rejects(clone, rejectPack ? /pack exceeds byte limit/ : /fixture remote failure/);
192+ for (const table of ["git_pack_spool", "git_pack_resolve", "git_object_meta", "git_object_bytes"])
217+ assert.deepEqual(Buffer.from((await git.readBlob({ fs, dir, cache, oid: blobOid })).blob), blob);
234+ Buffer.from((await git.readBlob({ fs, dir, cache, oid: exported.commit, filepath: "large.bin" })).blob),
243+ for (const entry of fs.entries.values()) if (entry.kind === "file") assert.equal(entry.data.byteLength, 0);
- MCP
- compare on this site's /mcp
- CLI
- abso diff 76 318 server/test/git-disk-clone.test.ts --json
- JSON
- /christopher/abso-core/compare/76..318?file=server%2Ftest%2Fgit-disk-clone.test.ts&format=json