-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
calculateTree() runs forever if PR has 1000+ files #138
Comments
Hi @regosen - thanks for reporting. Can you provide a public link to such a PR? |
Hi @berzniz - I haven't been able to find such a public PR yet unfortunately... only private ones. |
That being said, here's a commit with over 1000 additions/deletions, showing how GitHub formats such numbers:
|
Thanks @regosen |
Oh, do you need a PR that touches a thousand files? https://github.com/MovingBlocks/Terasology/pull/4622/files |
In index.tsx calculateTree() you parseInt the contents of
files_tab_counter
, but GitHub formats it with a comma (e.g. 1024 -> "1,024"), so parseInt returns the value before the first comma.As a result, count is always greater than fileCount and we retrigger calculateTree over and over again:
The text was updated successfully, but these errors were encountered: