summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-08-13 14:13:39 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-08-13 14:13:39 -0700
commit092b6771c799d761a83317f68a467bef930686ad (patch)
tree0a13eea4871f627761829ead7609d6cdcdfb706e
parentSixth batch (diff)
parentgit-cvsexportcommit: support Perl before 5.10.1 (diff)
downloadtgif-092b6771c799d761a83317f68a467bef930686ad.tar.xz
Merge branch 'bc/sha-256-cvs-svn-updates'
Portability fix. * bc/sha-256-cvs-svn-updates: git-cvsexportcommit: support Perl before 5.10.1
-rwxr-xr-xgit-cvsexportcommit.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-cvsexportcommit.perl b/git-cvsexportcommit.perl
index 6483d792d3..0ae8bce3fb 100755
--- a/git-cvsexportcommit.perl
+++ b/git-cvsexportcommit.perl
@@ -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;