<div dir="ltr">Hi Nicolás,<div><br></div><div>The missing history was some mistake I made during the conversion. </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span style="font-size:12.8px">Note that git-fast-import produces very badly compressed repositories. I recommend running 'git gc --aggressive' after converting.</span></blockquote><div><br></div><div>I usually do 'git repack -a -f -d'. What I don't understand is, it may say 'nothing to do'. Then I push the code up to the server (Bit Bucket in my case). If I go to where the repo is stored on the server, and then do 'git gc' followed by 'git repack -a -d -f', it repacks the whole repository. I am not sure why it repacks it on the server, and says 'nothing to do' on the client. Do you know if there is a way to force it repack the whole repo? It really helps with performance, I can shave 1GB off the size of the repository if I can get it to repack the whole thing.</div><div><br></div><div>Also, I have one repository which is 5GB in size and imports in 20 minutes. Then I have one which is 3.4GB in size but takes two hours to import. I think the reason here is the number of objects. The second one has over 1 million, as it has 17 years of history.</div><div><br></div><div>John </div></div><div class="gmail_extra"><br><div class="gmail_quote">On 15 September 2017 at 17:26, Nicolás Alvarez <span dir="ltr"><<a href="mailto:nicolas.alvarez@gmail.com" target="_blank">nicolas.alvarez@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><br></div><div>El 15 sept 2017, a las 13:19, John Lawlor <<a href="mailto:jk.lawlor@gmail.com" target="_blank">jk.lawlor@gmail.com</a>> escribió:<br><br></div><blockquote type="cite"><div><div dir="ltr">Hi,<div><br></div><div>I have converted a large SVN repo to git using svn2git. The repo is 5G on disk:</div><div><br></div><div><div><font face="monospace, monospace">[johnl@pluto:/u01/conversion/<wbr>tools/bin ]$ du -sh VoltComponents/</font></div><div><font face="monospace, monospace">5.4G VoltComponents/</font></div><div><font face="monospace, monospace">[johnl@pluto:/u01/conversion/<wbr>tools/bin ]$ </font></div></div></div></div></blockquote><div><br></div><div>Note that git-fast-import produces very badly compressed repositories. I recommend running 'git gc --aggressive' after converting.</div><br><blockquote type="cite"><div dir="ltr"><div>When I push it up to the server, it is only pushing 1.5GB of data, and the repository is missing two years of commits.</div><div><br></div><div>I am not sure what is happening...</div></div>
</blockquote><br><div>Does your converted repository have multiple branches? Are you pushing them all? A 'git push' might only push the current branch...</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-- </div><div>Nicolás</div><div>Award-winning git repo surgeon (?!)</div></font></span></div></blockquote></div><br></div>