GitNexus/gitnexus/test
samuel mbabhazi b51852cacf
Some checks failed
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
Gitleaks / gitleaks (push) Waiting to run
Publish / Classify release event (push) Waiting to run
Publish / RC guard (marker + release-PR skip) (push) Blocked by required conditions
Publish / ci (push) Blocked by required conditions
Publish / Publish to npm (push) Blocked by required conditions
Publish / Build & Push RC Docker images (push) Blocked by required conditions
Scorecard / Scorecard analysis (push) Waiting to run
Trivy Image Scan / Trivy (gitnexus-cli) (push) Waiting to run
Trivy Image Scan / Trivy (gitnexus-web) (push) Waiting to run
Skill copy sync / shipped skills drift guard (push) Has been cancelled
fix(wiki): use the repository that contains a given folder or file (#4043)
* fix(wiki): use the repository that contains a given folder or file

`gitnexus wiki <path>` took the path as the repository root. A folder
inside an indexed repository failed with "No GitNexus index found at
<folder>/.gitnexus", and a file with "Not a git repository", while
`gitnexus wiki` with no path, run from that folder, worked.

A file now stands for its folder, and a folder without an index of its
own uses the index of the repository that contains it. A folder that was
analyzed on its own keeps its index, and any other storage state is
reported as before.

Fixes #493

* fix(wiki): keep the fallback inside the repository that contains the path

Review follow-ups for #493. The fallback moves to the git root only when
the root contains the folder once symlinks are resolved, so an exported
GIT_DIR and GIT_WORK_TREE can no longer select another checkout. It also
applies when the folder resolved to the repository's own storage, as
with GITNEXUS_STORAGE_PATH, and no longer applies when the folder's slot
could not be read.

A path that cannot be stat'ed is left to the git check, which reports
"Not a git repository" as before instead of a stack trace, and the error
names the repository when its own storage cannot be used.

---------

Co-authored-by: Gergő Magyar <gergomagyar@icloud.com>
2026-11-23 20:10:33 +00:00
..
compat chore(deps): consolidate seven Dependabot updates (#4014) 2026-11-20 08:46:38 +00:00
fixtures feat(r): add R language support (#3513) 2026-11-19 17:16:27 +00:00
helpers fix: improve Python caller accuracy and flag incompatible calls (#4012) 2026-11-20 19:09:22 +00:00
integration fix(ingestion): spill lexical scopes under heap pressure for all PDG languages (#4028) 2026-11-22 11:23:21 +00:00
unit fix(wiki): use the repository that contains a given folder or file (#4043) 2026-11-23 20:10:33 +00:00
utils fix(hooks): scope graph context to leading rg and grep searches (#4002) 2026-11-20 05:22:14 +00:00