Files
gstack/bin
Garry TanandClaude Fable 5 2c07418ee1 fix(repo-mode): probe GNU stat before BSD so Git Bash stops crashing
Fixes #2195. On GNU coreutils `stat -f` SUCCEEDS (filesystem status, not a
format string), so the BSD-first fallback chain never fell over — it fed
multi-word filesystem output into the cache-age arithmetic and crashed under
set -u on Windows Git Bash. GNU `stat -c` fails cleanly on BSD/macOS, making
GNU-first deterministic on both; the mtime is numeric-validated before
arithmetic as a last line of defense.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-16 09:20:14 -07:00
..