mirror of
https://github.com/git/git.git
synced 2024-11-19 21:24:01 +01:00
Merge branch 'fk/maint-cvsimport-early-failure' into maint
* fk/maint-cvsimport-early-failure: git-cvsimport.perl: Bail out right away when reading from the server fails
This commit is contained in:
commit
f35bb7c38d
@ -366,7 +366,9 @@ sub conn {
|
|||||||
$self->{'socketo'}->write("valid-requests\n");
|
$self->{'socketo'}->write("valid-requests\n");
|
||||||
$self->{'socketo'}->flush();
|
$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*//) {
|
if ($rep !~ s/^Valid-requests\s*//) {
|
||||||
$rep="<unknown>" unless $rep;
|
$rep="<unknown>" unless $rep;
|
||||||
die "Expected Valid-requests from server, but got: $rep\n";
|
die "Expected Valid-requests from server, but got: $rep\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user