MakeSense for GitHub — Make Sense of Any GitHub PR, with full cognitive coverage of every change.
HexmosTech/git-lrc#129 — 3 files, 6 review comments
Fix Git Subdirectory Detection
Overview
The system now accurately detects Git repositories from subdirectories. This improves reliability for Git-related operations. New tests validate this behavior.
Technical Highlights
gitops/config.go: Replaced `.git` directory check with `git rev-parse --is-inside-work-tree` for robust detection.
internal/appcore/hooks_management.go: Updated `isGitRepository` to use the improved `gitops.IsGitRepository` function.
tests/worktree-hooks.sh: Added new tests for `lrc hooks` commands within Git subdirectories.
Impact
Functionality: `lrc hooks` commands now operate correctly when run from any Git repository subdirectory.
Risk: None identified; this change improves system robustness.
Files reviewed
- gitops/config.go — 1 comment(s)
- internal/appcore/hooks_management.go — 1 comment(s)
- tests/worktree-hooks.sh — 4 comment(s)
View the full interactive review (JavaScript required).