mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-16 01:25:00 +00:00
fix: Adjust analytics repo file count condition
This commit is contained in:
parent
df5b780d6c
commit
d55beb5f24
1 changed files with 2 additions and 2 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue