From af30ffd1c585ae065ccee7181c32a2b50684a409 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Mon, 23 May 2011 18:38:21 -0700 Subject: Recreate the repo object slightly earlier. --- libpiny/lib/Piny/Repo.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libpiny/lib/Piny/Repo.pm') diff --git a/libpiny/lib/Piny/Repo.pm b/libpiny/lib/Piny/Repo.pm index d25c3e7..3bb275d 100644 --- a/libpiny/lib/Piny/Repo.pm +++ b/libpiny/lib/Piny/Repo.pm @@ -433,11 +433,13 @@ sub create { $repo->rebuild_git; + $repo = $class->new( $name ); + if ( $repo->config->piny_ikiwiki =~ /^(1|true)$/ ) { $repo->rebuild_ikiwiki; }; - return $class->new( $name ); + return $repo; }; # Builder methods -- cgit v1.2.3