diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-05-23 01:43:07 -0700 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2011-05-23 01:43:07 -0700 |
commit | fb0cd432022f2313c02d45c13943021b6338ce99 (patch) | |
tree | 1c4a498573c2b0dc06a3784ea6f13048cdd31070 /libpiny | |
parent | 1a75c7c53f64d0eec5eb3477900a6cc76aec3281 (diff) | |
download | piny-code-fb0cd432022f2313c02d45c13943021b6338ce99.tar.gz piny-code-fb0cd432022f2313c02d45c13943021b6338ce99.zip |
Don't accidentally remove stuff when changing the user config.
Diffstat (limited to 'libpiny')
-rw-r--r-- | libpiny/lib/Piny/Config.pm | 2 |
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; }; |