exit(1);
}
-getopts("hqvo:d:p:C:z:") or usage();
+getopts("hvo:d:p:C:z:") or usage();
usage if $opt_h;
@ARGV <= 1 or usage();
$res = $self->_line($fh);
die "No input: $fn $rev\n" unless defined $res;
}
+ close ($fh);
return ($name, $res);
}
$fn =~ s#^/+##;
my ($tmpname, $size) = $cvs->file($fn,$rev);
print "".($init ? "New" : "Update")." $fn: $size bytes.\n" if $opt_v;
- open my $F, '-|', "git-write-blob $tmpname"
+ open my $F, '-|', "git-hash-object -w $tmpname"
or die "Cannot create object: $!\n";
my $sha = <$F>;
chomp $sha;