Files
ruflo/v3/@claude-flow/cli/src
rUv 48da302b3b fix(doctor): walk-up .git fallback for git-repo health check (#1791.7) (#1802)
`ruflo doctor` was reporting `Not a git repository` even when `.git/`
clearly existed in cwd, because the only signal it consulted was a `git
rev-parse --git-dir` invocation that failed for unrelated environment
reasons (PATH inheritance, daemon-launched contexts, broken global git
config, etc.).

Two changes:

  1. Use `--is-inside-work-tree` instead of `--git-dir` — slightly more
     robust and matches what other tools do.
  2. On failure, walk up parents of cwd looking for a `.git` directory.
     If found, surface a *useful* warning ("repo detected on disk but
     `git rev-parse` failed — check git PATH") instead of the misleading
     "not a repository". Only return the original message when neither
     git nor a .git directory is found.

This preserves `pass` semantics (still requires git working) but stops
gaslighting users whose repos are clearly on disk.

Closes #1791 (sub-bug 7).
2026-05-06 16:52:45 -04:00
..
2026-01-04 23:50:45 +00:00
2026-01-05 19:40:01 +00:00
2026-01-07 04:36:20 +00:00
2026-01-14 18:48:53 +00:00