Merge branch 'bc/sha-256-cvs-svn-updates'
Portability fix. * bc/sha-256-cvs-svn-updates: git-cvsexportcommit: support Perl before 5.10.1maint
commit
092b6771c7
|
@ -22,7 +22,7 @@ die "Need at least one commit identifier!" unless @ARGV;
|
||||||
my $repo = Git->repository();
|
my $repo = Git->repository();
|
||||||
$opt_w = $repo->config('cvsexportcommit.cvsdir') unless defined $opt_w;
|
$opt_w = $repo->config('cvsexportcommit.cvsdir') unless defined $opt_w;
|
||||||
|
|
||||||
my $tmpdir = File::Temp->newdir;
|
my $tmpdir = File::Temp::tempdir(CLEANUP => 1);
|
||||||
my $hash_algo = $repo->config('extensions.objectformat') || 'sha1';
|
my $hash_algo = $repo->config('extensions.objectformat') || 'sha1';
|
||||||
my $hexsz = $hash_algo eq 'sha256' ? 64 : 40;
|
my $hexsz = $hash_algo eq 'sha256' ? 64 : 40;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue