Skip to content

Fix: Local reviews no longer trigger git clone operations#14

Open
pranavsriram8 wants to merge 1 commit intokhezen:mainfrom
pranavsriram8:fix/local-git-detached-state
Open

Fix: Local reviews no longer trigger git clone operations#14
pranavsriram8 wants to merge 1 commit intokhezen:mainfrom
pranavsriram8:fix/local-git-detached-state

Conversation

@pranavsriram8
Copy link
Contributor

Problem

When running codespy review-local or codespy review-uncommitted, the scope identifier still attempted to clone the repository via git tools — even though the repo was already present locally. This could cause failures in detached HEAD states or environments without git remote access.

Solution

Introduced an is_local mode that skips git operations during scope identification when the repository is already on disk.

- Add ScopeIdentifierLocalSignature for local review scope detection
- Thread is_local flag through ScopeIdentifier and ReviewPipeline
- Skip git MCP server initialization when repo already present
- Extract shared scope docstring into reusable constants (DRY)
- Update README DSPy Signatures table with local variant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments