Fix retries in git-cvsimport v1.2.2
authorMartin Mares <mj@ucw.cz>
Sat, 18 Feb 2006 20:44:20 +0000 (21:44 +0100)
committerJunio C Hamano <junkio@cox.net>
Sun, 19 Feb 2006 00:19:00 +0000 (16:19 -0800)
commit39ba7d54649b35c943b026b54bff40cfa0153f3e
tree20dd2334f20df423ea9ea08c9b106811619e09ef
parent3ff903bfb9e34a02f681f1c95ef7aa3ce4d54d2a
Fix retries in git-cvsimport

Fixed a couple of bugs in recovering from broken connections:

The _line() method now returns undef correctly when the connection
is broken instead of falling off the function and returning garbage.

Retries are now reported to stderr and the eventual partially
downloaded file is discarded instead of being appended to.

The "Server gone away" test has been removed, because it was
reachable only if the garbage return bug bit.

Signed-off-by: Martin Mares <mj@ucw.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-cvsimport.perl