$ ./gitea --version
Gitea version 6aacf4d
$ git --version
git version 2.7.4
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.1 LTS (Xenial Xerus)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 16.04.1 LTS"
VERSION_ID="16.04"
HOME_URL="http://www.ubuntu.com/"
SUPPORT_URL="http://help.ubuntu.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"
[x]
):https://try.gitea.io/test/too-many-files
mkdir too-many-files
cd too-many-files
for i in {1..10000}; do touch $i; done
git init
git add .
git commit -m "Initial commit"
git remote add origin https://try.gitea.io/test/too-many-files.git
git push -u origin master
Then use web browser to load the page.
...
P.S.
systemctl status gitea.service
will show some interesting/strange phenomenon, which could be informative.Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
Maybe pagination to prevent this?
Ignore files after show some, this is also github does.
My repo doesn't have 10k files, but just 550 commits. Opening 'Commits' tab takes more than 2 seconds.
[Macaron] 2016-12-28 10:57:55: Completed /zxcv/MyRepo/commits/master 200 OK in 2.3113341s
@azlan Can you specify the details of the problem in another ticket ?
I will check that
Yes. Github just limits at 1000 files. I think that should be somewhat reasonable for a web UI, you can always check out locally or know what you're looking for an change the url, maybe use a search too. Idk how practical pagination might be for that. I don't see a real value in browsing thousands of files through pagination.
So we could also limits at 1000 files to fix this issue.
@lunny maybe add pagination in the future?
or at least some kind of lazy-loading (Press here to load more
)
That's another issues. Currently we have to limit 1000 files just like Github to fix this one.
This seems related as well: https://github.com/gogits/gogs/issues/3022 (see https://github.com/gogits/gogs/issues/3094 for reference)
We got this kind of issue multiple times now.
I will move this to v1.2 since there is no PR to fix this.
Since gitea seems to be the future of gogs, and the gogs issue is basically dead... any commentary on the proposed solution in the original post of https://github.com/gogits/gogs/issues/3022?
This should be fixed on v1.2
I'm not asking when it will be fixed, but rather how.
Just like github, will limit the numbers shown in the UI.
Have a diff?
This is the files page, not commits page. Commits page has paginate.
I see sorry that was my mistake. For some reason I thought it mean like 1000 of files and/or commits in a PR. I deleted my comment
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs during the next 2 weeks. Thank you for your contributions.
This has been fixed.
Most helpful comment
or at least some kind of lazy-loading (
Press here to load more
)