|
|
@ -846,8 +846,12 @@ while(<CVS>) { |
|
|
|
print "Drop $fn\n" if $opt_v; |
|
|
|
print "Drop $fn\n" if $opt_v; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
print "".($init ? "New" : "Update")." $fn: $size bytes\n" if $opt_v; |
|
|
|
print "".($init ? "New" : "Update")." $fn: $size bytes\n" if $opt_v; |
|
|
|
open my $F, '-|', "git-hash-object -w $tmpname" |
|
|
|
my $pid = open(my $F, '-|'); |
|
|
|
|
|
|
|
die $! unless defined $pid; |
|
|
|
|
|
|
|
if (!$pid) { |
|
|
|
|
|
|
|
exec("git-hash-object", "-w", $tmpname) |
|
|
|
or die "Cannot create object: $!\n"; |
|
|
|
or die "Cannot create object: $!\n"; |
|
|
|
|
|
|
|
} |
|
|
|
my $sha = <$F>; |
|
|
|
my $sha = <$F>; |
|
|
|
chomp $sha; |
|
|
|
chomp $sha; |
|
|
|
close $F; |
|
|
|
close $F; |
|
|
|