зеркало из https://github.com/microsoft/git.git
cvsimport: do not barf on creation of an empty file.
When the server says "created this file whose length is empty", we mistakenly said "oops, the server did not say a sensible thing". Fix it. Spotted and fixed by Linus, acked by Martin. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Родитель
405053d2d9
Коммит
61efa5e300
|
@ -371,7 +371,7 @@ sub file {
|
||||||
}
|
}
|
||||||
sub _fetchfile {
|
sub _fetchfile {
|
||||||
my ($self, $fh, $cnt) = @_;
|
my ($self, $fh, $cnt) = @_;
|
||||||
my $res;
|
my $res = 0;
|
||||||
my $bufsize = 1024 * 1024;
|
my $bufsize = 1024 * 1024;
|
||||||
while($cnt) {
|
while($cnt) {
|
||||||
if ($bufsize > $cnt) {
|
if ($bufsize > $cnt) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче