Re: [PATCH] git-cvsimport: fix initial checkout
- From
Marc-André Lureau <marcandre.lureau@gmail.com>
- Date
- Mar 13, 2008, 23:22 UTC
- Message-ID
- <e29894ca0803131622mbea0c95j2d3b4fd4ee8eca1@mail.gmail.com>
- In-Reply-To
- <47D9A836.9010601@catalyst.net.nz>
Hi
On Fri, Mar 14, 2008 at 12:18 AM, Martin Langhoff <martin@catalyst.net.nz> wrote:
Show 6 quoted lines
> > - 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