summaryrefslogtreecommitdiff
path: root/usr/src/libpiny/lib/Piny/Repo.pm
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/libpiny/lib/Piny/Repo.pm')
-rw-r--r--usr/src/libpiny/lib/Piny/Repo.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/libpiny/lib/Piny/Repo.pm b/usr/src/libpiny/lib/Piny/Repo.pm
index 8f21ee2..54d40ad 100644
--- a/usr/src/libpiny/lib/Piny/Repo.pm
+++ b/usr/src/libpiny/lib/Piny/Repo.pm
@@ -242,7 +242,7 @@ sub rebuild {
rename( $temp->filename, "/etc/ikiwiki/wikilist" ) or die "Could not rename over old wikilist: $!";
- $ENV{"GIT_DIR"} = $repo->path;
+ $ENV{"GIT_DIR"} = $s->path;
system( "/usr/bin/git", "config", "gitweb.owner", $s->owner->email->address ) and die "Could not git config gitweb.owner!";
delete $ENV{"GIT_DIR"};
@@ -270,7 +270,7 @@ sub destroy {
unlink( "/etc/ikiwiki/wikilist.d/" . $s->name );
- $temp = File::Temp->new( ) or die "Could not create temporary file: $!";
+ my $temp = File::Temp->new( ) or die "Could not create temporary file: $!";
$temp->unlink_on_destroy( 0 );
$dh = IO::Dir->new( "/etc/ikiwiki/wikilist.d" ) or die "Could not open wikilist.d directory: $!";