We’re currently evaluating SubGit, and it looks really promising so far!
One issue we stumbled upon is the repository size: After importing our SVN repository (approx. 10’000 commits), the Git repository size is around 3 GB. For comparison, the same repository imported using git svn was less than 100 MB.
Is there any way to reduce the repository size? Like this, cloning is painfully slow.
What we tried:
In a local repository, we were able to get the size down to below 100 MB using git repack:
It looks pretty unusual, however, we have never met such an issue, Git repository generally does not grow in size during the import. It might as well be specific to the particular SVN repository or to the particular configuration used for import, so it would worth to investigate that deeper. Could it be possible to share all SubGit logs from the affected repository? It would also be great to have logs and import configuration of the ‘git svn’ attempt, if that is possible. Also, could you please advise have you ran git gc on the repository?
If we change the 1m here to the default value of 512m and do git repack -A -d -F, the repository becomes conveniently small.
As I understand from SGT-604, this setting is set by SubGit during the configure step, so as a workaround, chances are that we could reset the value between subgit configure and subgit install:
git config --unset core.bigFileThreshold
Do you have any background info on why SubGit sets this value?
Is there an other possibility to configure this option using SubGit?
thank you for sharing your findings!
I haven’t yet reached the point to dig in that direction)
As for the setting – yes, it’s being set by SubGit, but I’m not sure what was the reason to overwrite the defaults, will discuss it with devs.