diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-05-23 18:38:21 -0700 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-05-23 18:38:21 -0700 |
commit | af30ffd1c585ae065ccee7181c32a2b50684a409 (patch) | |
tree | be41f5ae48425d0c031fc3401284942371842c8b /libpiny/lib/Piny | |
parent | fb0cd432022f2313c02d45c13943021b6338ce99 (diff) | |
download | piny-code-af30ffd1c585ae065ccee7181c32a2b50684a409.tar.gz piny-code-af30ffd1c585ae065ccee7181c32a2b50684a409.zip |
Recreate the repo object slightly earlier.
Diffstat (limited to 'libpiny/lib/Piny')
-rw-r--r-- | libpiny/lib/Piny/Repo.pm | 4 |
1 files changed, 3 insertions, 1 deletions
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 |