mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-11-27 22:38:50 +00:00
|
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 `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> |
||
|---|---|---|
| .. | ||
| compat | ||
| fixtures | ||
| helpers | ||
| integration | ||
| unit | ||
| utils | ||