mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-19 14:44:44 +01:00
Commands that read cut-off output now fail instead of judging part of it (GST-3086) (#4492)
Commands that read large git or gh output, including the credential pre-push hook, the pre-merge secret and literal scans and the sealed-output guard, now fail when Bun cuts that output off, instead of judging the part they got. Why: Bun can report exit status 0 together with ENOBUFS and partial stdout, so a push whose diff passed 64 MiB could get a credential past the pre-push hook. Nothing to do: the failure names `SPAWN_OUTPUT_INCOMPLETE` and links its troubleshooting entry. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
2767d229fb
commit
36b349d660
137 files changed
+311
-134
No files matched your search
@@ -26,7 +26,7 @@
|
||||
//
|
||||
// Adapted from Elaya's design-to-motion (MIT, (c) 2026 Elaya). See NOTICE.md.
|
||||
|
||||
import { spawnSync } from 'child_process';
|
||||
import { spawnSync } from '../lib/spawn-sync';
|
||||
import * as fs from 'fs';
|
||||
import * as path from 'path';
|
||||
import {
|
||||
|
||||
Reference in new issue
Block a user