Uploading large repos efficiently to start them going

42 views
Skip to first unread message

Claudio DeSouza

unread,
Apr 27, 2026, 5:49:52 AM (2 days ago) Apr 27
to Repo and Gerrit Discussion
Hello there,

I have set up at work a a gerrit instance to mirror Chromium's repo in our infra (https://chromium.googlesource.com/chromium/src), however uploading the repo to begin with has proven to be a very excruciating task. The only way I've managed to get anything going is to have a couple of tags updated at a time (Chromium has thousands of tags). I'm having to upload tags slowly in batches like these:

git push -o skip-validation mirror --prune --progress 26.0.1410.28 26.0.1410.29 26.0.1410.30 26.0.1410.31 26.0.1410.32 26.0.1410.33 26.0.1410.34 26.0.1410.35 26.0.1410.36 26.0.1410.37

Is there a better way to do this at least once to set up a large repo in gerrit?

Daniele Sassoli

unread,
Apr 27, 2026, 6:18:58 AM (2 days ago) Apr 27
to Repo and Gerrit Discussion
Have you tried putting the bare repo in the basePath directly and then run a reindex? 
So literally copy the .git folder into your basePath.

Claudio DeSouza

unread,
Apr 27, 2026, 6:34:18 AM (2 days ago) Apr 27
to Repo and Gerrit Discussion

Thanks for the reply. Testing this approach right now.

Daniele Sassoli

unread,
Apr 27, 2026, 6:43:45 AM (2 days ago) Apr 27
to Repo and Gerrit Discussion
On Monday, 27 April 2026 at 11:34:18 UTC+1 cdes...@chromium.org wrote:

Thanks for the reply. Testing this approach right now.

Reindex will take some time, you should be able to use the repo(git push/pull) even without that, but other things like searching for changes etc... won't work correctly.

Reply all
Reply to author
Forward
0 new messages