You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
git stderr ('not a git repository') leaks to terminal when working outside a repo #1
Running pify/yolo in a folder that is not a git repository prints git fatal messages to the terminal:
fatal: not a git repository (or any of the parent directories): .git
This happens on every risky bash/powershell command and on /yolo rewind because git is called without suppressing stderr. The extension already catches the error (gitHead returns null; decideCheckpoint returns {failed:true}), but stderr still leaks.
Fix
Pass stdio: ["ignore", "pipe", "ignore"] to the 5 execFileSync("git", ...) calls in extensions/yolo.ts (gitHead, gitCheckpoint runGit + update-ref, releaseRefs, /yolo rewind restore). Stdout keeps working; only stderr is silenced.
Fixed in 0.16.2 via #2. All five execFileSync("git", …) calls now pass stdio: ["ignore", "pipe", "ignore"], so git's fatal: not a git repository no longer leaks to the terminal outside a repo — on risky commands or /yolo rewind. Thanks for the clear report and the fix.
Activity
chore(yolo): release 0.16.2 — silence git stderr outside a repo (#1)
hypnguyen1209 commentedon Nov 2, 2026
Fixed in 0.16.2 via #2. All five
execFileSync("git", …)calls now passstdio: ["ignore", "pipe", "ignore"], so git'sfatal: not a git repositoryno longer leaks to the terminal outside a repo — on risky commands or/yolo rewind. Thanks for the clear report and the fix.