Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'fk/maint-cvsimport-early-failure' into maint
author
Junio C Hamano
<gitster@pobox.com>
Fri, 1 Apr 2011 23:20:24 +0000
(16:20 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Fri, 1 Apr 2011 23:20:24 +0000
(16:20 -0700)
* fk/maint-cvsimport-early-failure:
git-cvsimport.perl: Bail out right away when reading from the server fails
git-cvsimport.perl
patch
|
blob
|
history
raw
(from parent 1:
4584c94
)
diff --git
a/git-cvsimport.perl
b/git-cvsimport.perl
index 8e683e54783ab6e916bdb8ade56832ac81470648..bbf327f3e891cacdd14c0b18b51702ce14b2b6df 100755
(executable)
--- a/
git-cvsimport.perl
+++ b/
git-cvsimport.perl
@@
-366,7
+366,9
@@
sub conn {
$self->{'socketo'}->write("valid-requests\n");
$self->{'socketo'}->flush();
- chomp(my $rep=$self->readline());
+ my $rep=$self->readline();
+ die "Failed to read from server" unless defined $rep;
+ chomp($rep);
if ($rep !~ s/^Valid-requests\s*//) {
$rep="<unknown>" unless $rep;
die "Expected Valid-requests from server, but got: $rep\n";