Skip Menu |

This queue is for tickets about the Config-GitLike CPAN distribution.

Report information
The Basics
Id: 56242
Status: resolved
Priority: 0/
Queue: Config-GitLike

People
Owner: Nobody in particular
Requestors: rjbs [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.03
Fixed in: (no value)



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
Subject: Re: [rt.cpan.org #56242] Config::GitLike reads ~/.gitconfig twice
Date: Sat, 03 Apr 2010 01:25:14 -0400
To: bug-Config-GitLike [...] rt.cpan.org
From: Alex Vandiver <alexmv [...] bestpractical.com>
On Fri, 2010-04-02 at 20:54 -0400, Ricardo Signes via RT wrote: Show quoted text
> 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.
Whoops -- good catch. This is fixed in 1.04, which is on its way to CPAN now (or from http://github.com/bestpractical/config-gitlike/ if you're impatient). Thanks for the report! - Alex