mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-16 17:44:59 +00:00
Skip expensive get_tracked_files
call if skip_sanity_check_repo
is true
This commit is contained in:
parent
990a0566bb
commit
7a83f038d8
1 changed files with 2 additions and 1 deletions
|
@ -922,7 +922,8 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
if repo:
|
if repo:
|
||||||
analytics.event("repo", num_files=len(repo.get_tracked_files()))
|
num_files = 0 if args.skip_sanity_check_repo else len(repo.get_tracked_files())
|
||||||
|
analytics.event("repo", num_files=num_files)
|
||||||
else:
|
else:
|
||||||
analytics.event("no-repo")
|
analytics.event("no-repo")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue