From d17bf3edcd2def6cbbb823890b8248933b77e0f0 Mon Sep 17 00:00:00 2001 From: Gabe Date: Thu, 19 Jun 2025 18:25:17 +0200 Subject: [PATCH] fix: align local repository path behavior with repository-path option - Updated the handling of the --local_repo argument to set the repository path to Path(".") for consistency with the --repository-path . behavior. - This change ensures that both options yield the same result, improving user experience and reducing confusion. --- src/accordo_workflow_mcp/server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/accordo_workflow_mcp/server.py b/src/accordo_workflow_mcp/server.py index 82e9b5a..a3ba67b 100644 --- a/src/accordo_workflow_mcp/server.py +++ b/src/accordo_workflow_mcp/server.py @@ -167,7 +167,9 @@ def main(): if args.global_repo: repository_path = Path.home() elif args.local_repo: - repository_path = Path.cwd() + # FIX: Make --local equivalent to --repository-path . + # Use Path(".") to match --repository-path . behavior exactly + repository_path = Path(".") elif args.repository_path: # Show deprecation warning for --repository-path usage print(