mirror of
https://github.com/git/git.git
synced 2024-11-23 18:05:29 +08:00
Merge branch 'bc/sha-256-cvs-svn-updates'
Portability fix. * bc/sha-256-cvs-svn-updates: git-cvsexportcommit: support Perl before 5.10.1
This commit is contained in:
commit
092b6771c7
@ -22,7 +22,7 @@ die "Need at least one commit identifier!" unless @ARGV;
|
||||
my $repo = Git->repository();
|
||||
$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 $hexsz = $hash_algo eq 'sha256' ? 64 : 40;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user