From d55beb5f24d37ab3763f49dbe5007edb57968729 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 9 Jun 2025 06:39:11 -0700 Subject: [PATCH] fix: Adjust analytics repo file count condition --- aider/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aider/main.py b/aider/main.py index f73e74e1a..83855bad7 100644 --- a/aider/main.py +++ b/aider/main.py @@ -921,8 +921,8 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F analytics.event("exit", reason="Repository sanity check failed") return 1 - if repo: - num_files = 0 if args.skip_sanity_check_repo else len(repo.get_tracked_files()) + if repo and not args.skip_sanity_check_repo: + num_files = len(repo.get_tracked_files()) analytics.event("repo", num_files=num_files) else: analytics.event("no-repo")