summaryrefslogtreecommitdiff
path: root/libpiny/lib/Piny
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2011-05-13 16:06:54 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2011-05-13 16:06:54 -0700
commit1c28569027ba04671581f787eeb2ab42942ff494 (patch)
treea917e6e3ed03783b8d3d569b3d343c31ee40499a /libpiny/lib/Piny
parentd9df093f1837f971090def69fb20e5677cb364da (diff)
downloadpiny-code-1c28569027ba04671581f787eeb2ab42942ff494.tar.gz
piny-code-1c28569027ba04671581f787eeb2ab42942ff494.zip
Propagate global config to each git repo for git-specific tweakables.
Diffstat (limited to 'libpiny/lib/Piny')
-rw-r--r--libpiny/lib/Piny/Config.pm4
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};
};
};