Community
Participate
Working Groups
Steps to reproduce the problem: 1. Clone the main branch of a large repository with 1M branches 2. List the reflogs created locally (find $GIT_DIR/logs -type f | wc -l) Expected result: I see 3 reflogs: ./HEAD ./refs/heads/master ./refs/remotes/origin/HEAD Observed result: I see over 1M reflogs (all the remote tracking branches) If I do the same operation using git (C-implementation) I see the expected result.
New Gerrit change created: https://git.eclipse.org/r/c/jgit/jgit/+/193101
Updating the importance to critical because the issue is making JGit unusable for remote repositories with millions of refs.
I moved the version to v5.13 because I need the fix on Java 8 as well. The change for review on stable-5.13 is: https://git.eclipse.org/r/c/jgit/jgit/+/193007
(In reply to Luca Milanesio from comment #0) > Steps to reproduce the problem: > > 1. Clone the main branch of a large repository with 1M branches it's not necessary to clone a large repo with tons of branches to show that the current behaviour is wrong. 1 branch is sufficient. Which repository has 1M branches ? > 2. List the reflogs created locally (find $GIT_DIR/logs -type f | wc -l) > > Expected result: > I see 3 reflogs: > ./HEAD > ./refs/heads/master > ./refs/remotes/origin/HEAD > > Observed result: > I see over 1M reflogs (all the remote tracking branches) > > If I do the same operation using git (C-implementation) I see the expected > result.
Gerrit change https://git.eclipse.org/r/c/jgit/jgit/+/193007 was merged to [stable-5.13]. Commit: http://git.eclipse.org/c/jgit/jgit.git/commit/?id=4bb46936332e9d66569810f0a77bb08bb46fc950