From: Uri Moszkowicz Date: Wed, 24 Oct 2012 17:14:17 GMT Subject: Re: Long clone time after "done." Message-ID: In-Reply-To: It all goes to pack_refs() in write_remote_refs called from update_remote_refs(). On Tue, Oct 23, 2012 at 11:29 PM, Nguyen Thai Ngoc Duy wrote: > On Wed, Oct 24, 2012 at 1:30 AM, Uri Moszkowicz wrote: >> I have a large repository which I ran "git gc --aggressive" on that >> I'm trying to clone on a local file system. I would expect it to >> complete very quickly with hard links but it's taking about 6min to >> complete with no checkout (git clone -n). I see the message "Clining >> into 'repos'... done." appear after a few seconds but then Git just >> hangs there for another 6min. Any idea what it's doing at this point >> and how I can speed it up? > > "done." is printed by clone_local(), which is called in cmd_clone(). > After that there are just a few more calls. Maybe you could add a few > printf in between these calls, see which one takes most time? > -- > Duy