summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libpiny/lib/Piny/Repo.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpiny/lib/Piny/Repo.pm b/libpiny/lib/Piny/Repo.pm
index 1f50957..989ed96 100644
--- a/libpiny/lib/Piny/Repo.pm
+++ b/libpiny/lib/Piny/Repo.pm
@@ -186,6 +186,7 @@ has 'config' =>
, isa => 'Piny::Config'
, lazy_build => 1
, init_arg => undef
+ , clearer => 'clear_config'
);
# Public methods
@@ -250,6 +251,9 @@ sub rebuild_git {
system( "/usr/bin/git", "config", "gitweb.owner", $s->owner->email->address ) and die "Could not git config gitweb.owner!";
delete $ENV{"GIT_DIR"};
+ $s->clear_config;
+ $s->config->save;
+
};
sub rebuild_ikiwiki {