>From e78bf3e99deb26050f8515076db63075f6d0d171 Mon Sep 17 00:00:00 2001 From: "H.Merijn Brand - Tux" Date: Fri, 22 Mar 2013 20:56:53 +0100 Subject: [PATCH] Syntax error in Git.pm for File::Temp-0.23 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------1.8.2" This is a multi-part message in MIME format. --------------1.8.2 Content-Type: text/plain; charset=UTF-8; format=fixed Content-Transfer-Encoding: 8bit Testing with perl-5.16.3 and most recent File::Temp-0.23 revealed: $ git svn fetch 'tempfile' can't be called as a method at /pro/lib/perl5/site_perl/5.16.3/Git.pm line 1117. --- perl/Git.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --------------1.8.2 Content-Type: text/x-patch; name="0001-Syntax-error-in-Git.pm-for-File-Temp-0.23.patch" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="0001-Syntax-error-in-Git.pm-for-File-Temp-0.23.patch" diff --git a/perl/Git.pm b/perl/Git.pm index 96cac39..cf4f54a 100644 --- a/perl/Git.pm +++ b/perl/Git.pm @@ -1265,7 +1265,7 @@ sub _temp_cache { $tmpdir = $self->repo_path(); } - ($$temp_fd, $fname) = File::Temp->tempfile( + ($$temp_fd, $fname) = File::Temp::tempfile( 'Git_XXXXXX', UNLINK => 1, DIR => $tmpdir, ) or throw Error::Simple("couldn't open new temp file"); --------------1.8.2--