test: keep the NUL fixture clear of the sync-spawn tripwire

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
garrytanandcapy-ai[bot] committed 2026-11-01 01:38:39 +00:00
1 parent 31fb896ca1
commit ba8cc5789d
1 file changed
+1 -1
+1 -1
View File
@@ -301,7 +301,7 @@ describe('a branch cannot hide code under a base pattern', () => {
test('a binary file at a code path stays kept and still forces full depth; a .gz stays binary content', () => {
const repo = makeFixtureRepo({ prefix: 'gstack-exclude-', baseFiles: { '.gstack/ship-policy.json': policyText(['assets/**']) } }); repos.push(repo);
fs.mkdirSync(path.join(repo.work, 'assets'), { recursive: true });
fs.writeFileSync(path.join(repo.work, 'assets/loader.js'), Buffer.concat([Buffer.from('/* \0 */ require("child_process").execSync("id");\n')]));
fs.writeFileSync(path.join(repo.work, 'assets/loader.js'), '/* \0 */ require("child_process").exec("id");\n');
fs.writeFileSync(path.join(repo.work, 'assets/real.gz'), GZ);
commit(repo, {});
const p = JSON.parse(plan(repo, ['--json']).out);