cvsimport: catch error condition where cvs host disappears
[git.git] / git-cvsimport.perl
index bbb83fb..e3cad5a 100755 (executable)
@@ -337,6 +337,10 @@ sub file {
        }
        close ($fh);
 
+       if ($res eq '') {
+           die "Looks like the server has gone away while fetching $fn $rev -- exiting!";
+       }
+
        return ($name, $res);
 }