From 1c28569027ba04671581f787eeb2ab42942ff494 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Fri, 13 May 2011 16:06:54 -0700 Subject: Propagate global config to each git repo for git-specific tweakables. --- libpiny/lib/Piny/Config.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libpiny') 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}; }; }; -- cgit v1.2.3