From 28c9853a2cb8b789eaecf76ed18b4230eee45ca4 Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Wed, 1 Jun 2011 03:20:33 -0700 Subject: newrepo: migrating rebuild logic out of Repo.pm and making --enable/disable-ikiwiki work --- libpiny/lib/Piny/Repo.pm | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'libpiny/lib') diff --git a/libpiny/lib/Piny/Repo.pm b/libpiny/lib/Piny/Repo.pm index b5e6800..675c16c 100644 --- a/libpiny/lib/Piny/Repo.pm +++ b/libpiny/lib/Piny/Repo.pm @@ -455,7 +455,7 @@ sub all_repos { return @ret; }; -# Only sets up needed data; ->rebuild takes care of the rest. +# Only sets up needed data; ->rebuild can take care of the rest. sub create { my ( $class, $name, $description, $remote ) = @_; @@ -498,14 +498,8 @@ sub create { $repo->description( $description ); - $repo->rebuild_git; - $repo = $class->new( $name ); - if ( $repo->config->piny_ikiwiki =~ /^(1|true)$/ ) { - $repo->rebuild_ikiwiki; - }; - return $repo; }; -- cgit v1.2.3