diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-05-13 16:09:38 -0700 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-05-13 16:09:38 -0700 |
commit | 73ee878620d6ece44b99fb8aee6dc1b49a82021e (patch) | |
tree | 10cecf232dcee7cd5144547e7e1bcc989110dfd0 /libpiny/lib/Piny/Repo.pm | |
parent | 1c28569027ba04671581f787eeb2ab42942ff494 (diff) | |
download | piny-code-73ee878620d6ece44b99fb8aee6dc1b49a82021e.tar.gz piny-code-73ee878620d6ece44b99fb8aee6dc1b49a82021e.zip |
Canonicalize repo config during rebuild.
Diffstat (limited to 'libpiny/lib/Piny/Repo.pm')
-rw-r--r-- | libpiny/lib/Piny/Repo.pm | 4 |
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 { |