From: Marc-André Lureau Date: Thu, 13 Mar 2008 23:22:08 GMT Subject: Re: [PATCH] git-cvsimport: fix initial checkout Message-ID: In-Reply-To: <47D9A836.9010601@catalyst.net.nz> Hi On Fri, Mar 14, 2008 at 12:18 AM, Martin Langhoff wrote: > > - unless ($last_branch) { > > + if (-f "$git_dir/$last_branch") { > > Note that the file won't exist there in any modern git. It will be in > $git_dir/refs/heads/$last_branch. Did you test this patch? > git-symbolic-ref HEAD do return "refs/heads/master" on my initial in-the-middle checkout (I still have a copy), So it seems correct for now, but i'll change it to use rev-parse instead as it seems more correct. Regards -- Marc-André Lureau