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

Re: git-cvs-import retries

From
MMMartin Mares <mj@ucw.cz>
Date
Feb 18, 2006, 13:14 UTC
Message-ID
<mj+md-20060218.130645.5680.albireo@ucw.cz>
In-Reply-To
<7v1wy1t9cb.fsf@assigned-by-dhcp.cox.net>
Hi Junio!
> First, one technicality.  You can see what's wrong with the
> above, right?  Remember, the top part of your message goes into
> the commit log, so we do not want "Hello!" nor signature.

Sorry about that, the patch was intended more for discussion than for applying.

> I read _line() three times but its return value is the lexical
> variable $res which is initialized to 0 and then either reset to
> 0 by assignment or updated with $res += somethingelse.  So I do
> not see how you can get a defined but empty string in there.
You almost convinced me that my fix couldn't have changed anything :-)

But it did and I finally understand why: _line() can exit not only by return, but also by falling over when readline() returns undef. In this case, something weird is returned (the most recent expression evaluated) and it's *sometimes* the empty string.

I will send a new patch.
				Have a nice fortnight
-- 
Martin `MJ' Mares   <mj@ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
The first myth of management is that it exists.
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 5 in “git-cvs-import retries”
  1. Martin MaresFeb 17, 2006
  2. Junio C HamanoFeb 18, 2006
  3. Martin MaresFeb 18, 2006
  4. Junio C HamanoFeb 18, 2006
  5. Fix retries in git-cvsimportMartin Mares, Feb 18, 2006

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.