-
|
Every 6 months the Koha community rolls a new release. It's this time of the year and 25.11 has been released and the new version is added to our Weblate instance. Our Weblate setup is structured as follows: The first component is linked to our l10n git repo tracking the relevant branch (e.g. koha/main tracks koha-l10n/main, koha/25.11 tracks koha-l10n/25.11, etc.) The problem is that the koha-l10n repo keeps growing and is now approximately 11GB. Each version in Weblate has a full clone of the repo leading to significant storage usage: Additionally Weblate's DB volumes is 46GB. To add new versions, I have to remove older ones due to storage constraints. Is there a way to prevent Weblate from cloning the entire repository for each version? Could this be implemented as a feature, or is there an existing solution I might have missed in the documentation? Could we have a shallow clone with minimal depth? Or using worktrees? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
Weblate does shallow clones by default and fetches a single branch only; see https://docs.weblate.org/en/latest/admin/config.html#vcs-clone-depth. But it will automatically unshallow when pushing to upstream fails because of the shallow clone. I'm not sure if anything changed at GitLab, but AFAIK it didn't work in the past. |
Beta Was this translation helpful? Give feedback.
-
|
In testing env: In production: However the prod server is not using the dev branch yet so I expect it to refetch the branches again. Thanks again for your work on this @nijel! |
Beta Was this translation helpful? Give feedback.
In my tests this seems to be the problem - the original clone is shallow, but next fetch fetches all the branches without specifying depth. So the checked out branch is shallow, but others have full history. #17276 should fix this.