summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorJoe Rayhawk <jrayhawk@omgwallhack.org>2010-10-16 01:36:34 -0700
committerJoe Rayhawk <jrayhawk@omgwallhack.org>2010-10-16 01:36:34 -0700
commitf5d259ca30d8c9833002479eb881de415401ddd3 (patch)
tree08f7d4a44407ec6cddec89c419eb35a5bc2073c6 /usr
parent2a086eb0a011f07f7e687b9b55d80da5d52364d3 (diff)
downloadpiny-code-f5d259ca30d8c9833002479eb881de415401ddd3.tar.gz
piny-code-f5d259ca30d8c9833002479eb881de415401ddd3.zip
Fixing small dumb mistakes to get cgit/gitweb owner stuff working
Diffstat (limited to 'usr')
-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: $!";