diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-05-13 16:06:54 -0700 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-05-13 16:06:54 -0700 |
commit | 1c28569027ba04671581f787eeb2ab42942ff494 (patch) | |
tree | a917e6e3ed03783b8d3d569b3d343c31ee40499a /libpiny | |
parent | d9df093f1837f971090def69fb20e5677cb364da (diff) | |
download | piny-code-1c28569027ba04671581f787eeb2ab42942ff494.tar.gz piny-code-1c28569027ba04671581f787eeb2ab42942ff494.zip |
Propagate global config to each git repo for git-specific tweakables.
Diffstat (limited to 'libpiny')
-rw-r--r-- | libpiny/lib/Piny/Config.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libpiny/lib/Piny/Config.pm b/libpiny/lib/Piny/Config.pm index 4df09ba..64a8d18 100644 --- a/libpiny/lib/Piny/Config.pm +++ b/libpiny/lib/Piny/Config.pm @@ -163,11 +163,11 @@ sub save { foreach my $key ( keys %{$s->_conf} ) { if ( exists $override->{$key} ) { - delete $s->_conf->{$key}; + delete $s->_conf->{$key} if $key =~ /^piny\./; } elsif ( exists $userconf->{$key} ) { delete $s->_conf->{$key} if $userconf->{$key} eq $s->_conf->{$key}; } elsif ( exists $default->{$key} ) { - delete $s->_conf->{$key} if $default->{$key} eq $s->_conf->{$key}; + delete $s->_conf->{$key} if $key =~ /^piny\./ and $default->{$key} eq $s->_conf->{$key}; }; }; |