Subject: | Config::GitLike reads ~/.gitconfig twice |
Here is a program:
---
use strict;
use Config::GitLike;
my $config = Config::GitLike->new(confname => 'gitconfig');
$config->load;
use Data::Dumper;
print Dumper($config->config_files);
print $config->get(key => 'github.user');
---
If executed in my home or a subdir, I get:
---
~$ perl read-token
$VAR1 = [
'/Users/rjbs/.gitconfig',
'/Users/rjbs/.gitconfig'
];
Multiple values at /usr/local/lib/perl5/site_perl/5.10.1/Config/GitLike.pm line 499.
---
If executed outside my homedir (like / or /tmp) I get:
---
/tmp$ perl ~/read-token
$VAR1 = [
'/Users/rjbs/.gitconfig'
];
---
This basically makes this module impossible to use without going through hoops.
--
rjbs