git: Fix temp file location.

master
Joey Hess 2010-11-29 12:01:50 -04:00
parent 47b4682ba7
commit 78a22e2eb2
2 changed files with 2 additions and 1 deletions

View File

@ -797,7 +797,7 @@ sub git_parse_changes {
eval q{use File::Temp}; eval q{use File::Temp};
die $@ if $@; die $@ if $@;
my $fh; my $fh;
($fh, $path)=File::Temp::tempfile("XXXXXXXXXX", UNLINK => 1); ($fh, $path)=File::Temp::tempfile(undef, UNLINK => 1);
my $cmd = "cd $git_dir && ". my $cmd = "cd $git_dir && ".
"git show $detail->{sha1_to} > '$path'"; "git show $detail->{sha1_to} > '$path'";
if (system($cmd) != 0) { if (system($cmd) != 0) {

1
debian/changelog vendored
View File

@ -13,6 +13,7 @@ ikiwiki (3.20101113) UNRELEASED; urgency=low
of the highlight package. of the highlight package.
* edittemplate: Fix crash if using a .tmpl file or other non-page file * edittemplate: Fix crash if using a .tmpl file or other non-page file
as a template for a new page. as a template for a new page.
* git: Fix temp file location.
-- Joey Hess <joeyh@debian.org> Tue, 16 Nov 2010 14:23:47 -0400 -- Joey Hess <joeyh@debian.org> Tue, 16 Nov 2010 14:23:47 -0400