git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] git-cvsimport: fix initial checkout

From
MLMartin Langhoff <martin@catalyst.net.nz>
Date
Mar 13, 2008, 23:27 UTC
Message-ID
<47D9B875.50305@catalyst.net.nz>
In-Reply-To
<7vr6eew70a.fsf@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
> Martin, it may not even be in $git_dir/refs/heads/$last_branch ;-)  The
> refs can be packed.

Yes. I was suggesting git-ref-parse to support packed refs, but this slipped ;-)

> By the way, doesn't cvsimport fail when your HEAD is detached with this
> code?

Perhaps. Importing on a working repo with -i is a bit messy, and detached heads may well break it. I'm not that conversant on how detached heads look ;-)

Show 5 quoted lines
> I always have cvsimport update the pristine upstream branch and rebase my
> work against it, so I never have the branch cvsimport updates checked
> out, and  for meit seems to work wonderfully (well, at least as wonderful
> as a workflow that involves any CVS in it could be).  I do not see a
> reason why it should not to work similarly well when my HEAD is detached..
sounds reasonable.
m
-- 
-----------------------------------------------------------------------
Martin @ Catalyst .Net .NZ  Ltd, PO Box 11-053, Manners St,  Wellington
WEB: http://catalyst.net.nz/           PHYS: Level 2, 150-154 Willis St
NZ: +64(4)916-7224    MOB: +64(21)364-017    UK: 0845 868 5733 ext 7224
      Make things as simple as possible, but no simpler - Einstein
-----------------------------------------------------------------------
Previous: Junio C HamanoNext: Marc-André Lureau
Message 8 of 9 in “git-cvsimport: fix initial checkout”
  1. git-cvsimport: fix initial checkoutMarc-Andre Lureau, Mar 13, 2008
  2. Junio C HamanoMar 13, 2008
  3. Martin LanghoffMar 13, 2008
  4. Marc-André LureauMar 13, 2008
  5. Marc-André LureauMar 13, 2008
  6. Martin LanghoffMar 13, 2008
  7. Junio C HamanoMar 13, 2008
  8. Martin LanghoffMar 13, 2008
  9. Marc-André LureauMar 13, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.