projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
405053d
)
cvsimport: do not barf on creation of an empty file.
author
Junio C Hamano
<junkio@cox.net>
Tue, 23 May 2006 23:30:39 +0000
(16:30 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Tue, 23 May 2006 23:30:39 +0000
(16:30 -0700)
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>
git-cvsimport.perl
patch
|
blob
|
history
diff --git
a/git-cvsimport.perl
b/git-cvsimport.perl
index
41ee9a6
..
60fc86a
100755
(executable)
--- a/
git-cvsimport.perl
+++ b/
git-cvsimport.perl
@@
-371,7
+371,7
@@
sub file {
}
sub _fetchfile {
my ($self, $fh, $cnt) = @_;
- my $res;
+ my $res
= 0
;
my $bufsize = 1024 * 1024;
while($cnt) {
if ($bufsize > $cnt) {