We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 457e3dc commit 2ba16cfCopy full SHA for 2ba16cf
1 file changed
src/git/src/mcp_server_git/server.py
@@ -196,6 +196,8 @@ def get_repo(self, repo_path: str) -> git.Repo:
196
Raises:
197
ValueError: If the path is invalid or not a Git repository
198
"""
199
+ if not self.base_path:
200
+ raise ValueError("No base repository path configured")
201
try:
202
resolved_path = self.resolve_repo_path(repo_path)
203
validated_path = self.path_validator.validate_path(resolved_path)
0 commit comments