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

Re: Trouble importing from public CVS repo

From
JGJeff Garzik <jeff@garzik.org>
Date
Jan 5, 2008, 00:40 UTC
Message-ID
<477ED1FA.1070102@garzik.org>
In-Reply-To
<BAYC1-PASMTP15EA2E9A1145CD66AF7C4DAE4C0@CEZ.ICE>
Sean wrote:
Show 13 quoted lines
> diff --git a/git-cvsimport.perl b/git-cvsimport.perl
> index 6d8ff93..357665d 100755
> --- a/git-cvsimport.perl
> +++ b/git-cvsimport.perl
> @@ -421,7 +421,7 @@ sub _line {
>  			$res += $self->_fetchfile($fh, $cnt);
>  		} else {
>  			chomp $line;
> -			if ($line eq "ok") {
> +			if ($line eq "ok" or $line =~ /^error/i) {
>  				# print STDERR "S: ok (".length($res).")\n";
>  				return $res;
>  			} elsif ($line =~ s/^E //) {
Kick ass, this local hack worked quite well.  Thanks :)
	Jeff
Previous: Sean
Message 3 of 3 in “Trouble importing from public CVS repo”
  1. Jeff GarzikJan 4, 2008
  2. SeanJan 4, 2008
  3. Jeff GarzikJan 5, 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.