{"draft":null,"from":165,"to":166,"files":[{"path":"server/test/push.test.ts","added":27,"removed":0,"diff":"--- a/server/test/push.test.ts\n+++ b/server/test/push.test.ts\n@@ -22,6 +22,33 @@\n });\n \n describe(\"commitShared\", () => {\n+\tit(\"reads one lazy file at a time and does not read symlink placeholder text\", async (t) => {\n+\t\tconst fs = new MemoryFS();\n+\t\tconst dir = \"/repo\";\n+\t\tawait git.init({ fs, dir, defaultBranch: \"main\" });\n+\t\tlet writes = 0;\n+\t\tconst writeBlob = git.writeBlob;\n+\t\tt.mock.method(git, \"writeBlob\", async (options: Parameters<typeof writeBlob>[0]) => {\n+\t\t\tconst result = await writeBlob(options);\n+\t\t\twrites++;\n+\t\t\treturn result;\n+\t\t});\n+\t\tconst files = {\n+\t\t\tget a() {\n+\t\t\t\tassert.equal(writes, 0);\n+\t\t\t\treturn \"first\";\n+\t\t\t},\n+\t\t\tget b() {\n+\t\t\t\tassert.equal(writes, 1);\n+\t\t\t\treturn \"second\";\n+\t\t\t},\n+\t\t\tget link(): string {\n+\t\t\t\tthrow Error(\"symlink placeholder text must not be read\");\n+\t\t\t},\n+\t\t};\n+\t\tawait commitShared(fs, dir, null, { version: 0, files, modes: { link: { link: \"a\" } } }, () => null);\n+\t\tassert.equal(writes, 3);\n+\t});\n \tit(\"writes shared as a commit with its modes, then only what changed\", async () => {\n \t\tconst fs = new MemoryFS();\n \t\tconst dir = \"/repo\";"}],"unmatched":[]}