summaryrefslogtreecommitdiff
path: root/tests/opencode
diff options
context:
space:
mode:
authorJesse Vincent <jesse@fsck.com>2026-10-23 00:17:37 +0000
committerJesse Vincent <jesse@fsck.com>2026-10-23 00:21:52 +0000
commit8b0eefc87b26530a71f0912af09af023fa3008fc (patch)
treef3fa54af127774623f274b72ea330132d0746e5c /tests/opencode
parent0d61007ef6a3a0a870f164a37da14b58f3de192a (diff)
fix(sdd): append git's own error line to the no-repo messagefix/2429-sdd-repo-resolution
sdd-repo ran git with stderr discarded, so every git failure became "must run from inside the git working tree ... run 'git init'". Where git refuses a working tree the caller is actually inside (dubious ownership on another owner's, FAT, network or WSL /mnt/c checkout; git missing from PATH; the cwd inside .git), that message is false, points at git init in an existing project, and hides the one line naming the real fix. dev printed git's fatal, so this was a diagnostic regression. The shared message stays, and git's first stderr line from whichever check failed now always follows it as "git said: <line>", with no per-case branches: SDD scripts must run from inside the git working tree ... then rerun. git said: fatal: detected dubious ownership in repository at '/r' Tests: every no-repo assertion now requires the second line (a plain non-repo dir gives "git said: fatal: not a git repository"), and a new test simulates dubious ownership with git's GIT_TEST_ASSUME_DIFFERENT_OWNER knob (no root or second uid needed; it skips if the installed git ignores the knob). Claude-Session: https://claude.ai/code/session_01SHANcr4A71nzuU9et4Fnba
Diffstat (limited to 'tests/opencode')
0 files changed, 0 insertions, 0 deletions