On Fri, 04 Jan 2008 16:41:10 -0500 Jeff Garzik <jeff@xxxxxxxxxx> wrote: > $ git-cvsimport -v -d:pserver:anonymous@xxxxxxxxxxxxxxxxxx:/cvsroot/unfs3 unfs3 > > produces > > Initialized empty Git repository in /spare/repo/unfs3/.git/ > Running cvsps... > connect error: Network is unreachable > cvs rlog: Logging unfs3 > cvs rlog: Logging unfs3/Config > cvs rlog: Logging unfs3/Extras > cvs rlog: Logging unfs3/contrib > cvs rlog: Logging unfs3/contrib/nfsotpclient > cvs rlog: Logging unfs3/contrib/nfsotpclient/mountclient > cvs rlog: Logging unfs3/contrib/rpcproxy > cvs rlog: Logging unfs3/doc > Fetching LICENSE v 1.1 > New LICENSE: 1416 bytes > Fetching Makefile.in v 1.1 > Unknown: error > Hi Jeff, See the same problem here and it has something to do with how files are being fetched from the cvs server. I'm not much inclined to research it further, however the ugly hack below appears to allow the repo to be imported. At least importing the first 10 commits (-L 10) looked okay... Perhaps it's a clue to how the issue could be resolved properly. HTH, Sean 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 //) { -- 1.5.4.rc2.17.g257f - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html