summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Blake Kongslie <jblake@omgwallhack.org>2011-05-23 01:43:07 -0700
committerJulian Blake Kongslie <jblake@omgwallhack.org>2011-05-23 01:43:07 -0700
commitfb0cd432022f2313c02d45c13943021b6338ce99 (patch)
tree1c4a498573c2b0dc06a3784ea6f13048cdd31070
parent1a75c7c53f64d0eec5eb3477900a6cc76aec3281 (diff)
downloadpiny-code-fb0cd432022f2313c02d45c13943021b6338ce99.tar.gz
piny-code-fb0cd432022f2313c02d45c13943021b6338ce99.zip
Don't accidentally remove stuff when changing the user config.
-rw-r--r--libpiny/lib/Piny/Config.pm2
1 files changed, 1 insertions, 1 deletions
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;
};