summaryrefslogtreecommitdiff
path: root/libpiny/lib
diff options
context:
space:
mode:
Diffstat (limited to 'libpiny/lib')
-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;
};