From fb0cd432022f2313c02d45c13943021b6338ce99 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Mon, 23 May 2011 01:43:07 -0700 Subject: Don't accidentally remove stuff when changing the user config. --- libpiny/lib/Piny/Config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libpiny/lib') diff --git a/libpiny/lib/Piny/Config.pm b/libpiny/lib/Piny/Config.pm index aaa415a..b3de152 100644 --- a/libpiny/lib/Piny/Config.pm +++ b/libpiny/lib/Piny/Config.pm @@ -170,7 +170,7 @@ sub save { my $home = Piny::Environment->instance->user->home . "/.gitconfig"; - if ( -s $home ) { + if ( $s->confpath ne $home and -s $home ) { $userconf = Config::Simple->new( $home )->vars; }; -- cgit v1.2.3