summaryrefslogtreecommitdiff
path: root/pinyadmin/sbin/newrepo
diff options
context:
space:
mode:
Diffstat (limited to 'pinyadmin/sbin/newrepo')
-rwxr-xr-xpinyadmin/sbin/newrepo4
1 files changed, 2 insertions, 2 deletions
diff --git a/pinyadmin/sbin/newrepo b/pinyadmin/sbin/newrepo
index 8f13873..ef42b0e 100755
--- a/pinyadmin/sbin/newrepo
+++ b/pinyadmin/sbin/newrepo
@@ -83,8 +83,6 @@ if( defined( $remote ) ) {
$repo = Piny::Repo->create( $name, $description );
};
-$repo->rebuild_git;
-
if ( defined( $ikiwiki ) ) {
$repo->config->piny_ikiwiki( $ikiwiki );
if ( $repo->config->piny_ikiwiki ne $ikiwiki ) {
@@ -92,6 +90,8 @@ if ( defined( $ikiwiki ) ) {
};
};
+$repo->rebuild;
+
if ( $repo->config->piny_ikiwiki ) {
$repo->rebuild_ikiwiki;
print( "Repo URL: " . $repo->ikiwiki_url . "\n" );