From 73ee878620d6ece44b99fb8aee6dc1b49a82021e Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Fri, 13 May 2011 16:09:38 -0700 Subject: Canonicalize repo config during rebuild. --- libpiny/lib/Piny/Repo.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libpiny') 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 { -- cgit v1.2.3