Martin Langhoff  committed d44e8cf

cvsimport: catch error condition where cvs host disappears

Add error handling for cases where the cvs server goes away unexpectedly.
While I don't know why the cvs server is so erratic, we should definitely
exit here before committing bogus files.

Signed-off-by: Martin Langhoff <>
Signed-off-by: Junio C Hamano <>

  • Participants
  • Parent commits 319f8b3

Comments (0)

Files changed (1)

File git-cvsimport.perl

 	close ($fh);
+	if ($res eq '') {
+	    die "Looks like the server has gone away while fetching $fn $rev -- exiting!";
+	}
 	return ($name, $res);