{"draft":null,"from":165,"to":166,"files":[{"path":"server/src/push.ts","added":2,"removed":2,"diff":"--- a/server/src/push.ts\n+++ b/server/src/push.ts\n@@ -170,10 +170,10 @@\n \t// Each file goes into the tree as a blob with its mode (#27): 100755 for exec, 120000 for a link, whose blob is\n \t// its target.\n \tconst enc = new TextEncoder();\n-\tfor (const [path, text] of Object.entries(shared.files)) {\n+\tfor (const path of Object.keys(shared.files)) {\n \t\tconst mode = shared.modes?.[path];\n \t\tconst link = typeof mode?.link === \"string\" ? mode.link : null;\n-\t\tconst bytes = enc.encode(link ?? text);\n+\t\tconst bytes = enc.encode(link ?? shared.files[path]!);\n \t\tawait put(path, bytes, link !== null ? \"120000\" : mode?.exec ? \"100755\" : \"100644\", await blobOid(bytes));\n \t}\n \tconst agent = shared.last?.agent ?? \"abso\";"}],"unmatched":[]}