[Development] Partially Cloning Qt Repositories with Git Filtering
0xloem at gmail.com
Sun Jun 26 01:30:17 CEST 2022
The Qt git repositories can at times seem large. Git has support now
for "filtering" or "partial clone". Some hits from a websearch:
This feature lets users download only the objects they are using,
automatically fetching new ones when needed. Unfortunately, it needs
server side support. The git server running on code.qt.io does not
have this support:
$ git --version
git version 126.96.36.199.gdc8c8deaa6
$ git clone --filter=blob:none --recurse-submodules
Cloning into 'qt5'...
warning: filtering not recognized by server, ignoring
A web search indicates the way to enable this may be this server-side option:
git config --global uploadpack.allowFilter true
and also mentioned in Documentation/config in the official git tree.
I checked git's history and it looks like this config option is around
as of v2.18.0 . There were some bugfixes since then.
Thanks for your quality major development platform.
More information about the Development