]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
git: Fix temp file location.
authorJoey Hess <joey@kitenet.net>
Mon, 29 Nov 2010 16:01:50 +0000 (12:01 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 29 Nov 2010 16:01:50 +0000 (12:01 -0400)
IkiWiki/Plugin/git.pm
debian/changelog

index 3fa29b22f78b6f47ea27b2f79950782b9ef03223..39d88d002716326b8c1acdc2c2c54705da351d34 100644 (file)
@@ -797,7 +797,7 @@ sub git_parse_changes {
                                eval q{use File::Temp};
                                die $@ if $@;
                                my $fh;
-                               ($fh, $path)=File::Temp::tempfile("XXXXXXXXXX", UNLINK => 1);
+                               ($fh, $path)=File::Temp::tempfile(undef, UNLINK => 1);
                                my $cmd = "cd $git_dir && ".
                                          "git show $detail->{sha1_to} > '$path'";
                                if (system($cmd) != 0) {
index d236361d22b540608e9b7bf3b3f4ee26afab8528..6f97399d8d1e9474e9d74cff4c252422729c209a 100644 (file)
@@ -13,6 +13,7 @@ ikiwiki (3.20101113) UNRELEASED; urgency=low
     of the highlight package.
   * edittemplate: Fix crash if using a .tmpl file or other non-page file
     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