summaryrefslogtreecommitdiff
path: root/libpiny/lib
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2011-05-23 18:38:21 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2011-05-23 18:38:21 -0700
commitaf30ffd1c585ae065ccee7181c32a2b50684a409 (patch)
treebe41f5ae48425d0c031fc3401284942371842c8b /libpiny/lib
parentfb0cd432022f2313c02d45c13943021b6338ce99 (diff)
downloadpiny-code-af30ffd1c585ae065ccee7181c32a2b50684a409.tar.gz
piny-code-af30ffd1c585ae065ccee7181c32a2b50684a409.zip
Recreate the repo object slightly earlier.
Diffstat (limited to 'libpiny/lib')
-rw-r--r--libpiny/lib/Piny/Repo.pm4
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