Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Git-Wrapper CPAN distribution.

Report information
The Basics
Id: 58787
Status: resolved
Priority: 0/
Queue: Git-Wrapper

People
Owner: GENEHACK [...] cpan.org
Requestors: dagolden [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: can't pass zero to an option
Example: $git->describe({abbrev => 0}) The option gets stripped rather than passed to git with value of 0. I'm not sure how this can be accommodated in the existing API design.
On Thu Jun 24 14:45:06 2010, DAGOLDEN wrote: Show quoted text
> Example: $git->describe({abbrev => 0}) > > The option gets stripped rather than passed to git with value of 0. > > I'm not sure how this can be accommodated in the existing API design.
This is a bit of a kludge, but I think if you do this, it'll work how you want: $git->describe({ abbrev => ' 0' }) If that works acceptably for you, I can update the documentation. thanks, john.
On Fri Jul 08 23:03:24 2011, GENEHACK wrote: Show quoted text
> On Thu Jun 24 14:45:06 2010, DAGOLDEN wrote:
> > Example: $git->describe({abbrev => 0}) > > > > The option gets stripped rather than passed to git with value of 0. > > > > I'm not sure how this can be accommodated in the existing API
> design. > > This is a bit of a kludge, but I think if you do this, it'll work how > you want: > > $git->describe({ abbrev => ' 0' }) > > If that works acceptably for you, I can update the documentation.
ping.
Subject: Re: [rt.cpan.org #58787] can't pass zero to an option
Date: Wed, 14 Sep 2011 09:08:52 -0400
To: bug-Git-Wrapper [...] rt.cpan.org
From: David Golden <dagolden [...] cpan.org>
On Tue, Sep 13, 2011 at 7:41 AM, John SJ Anderson via RT <bug-Git-Wrapper@rt.cpan.org> wrote: Show quoted text
>> This is a bit of a kludge, but I think if you do this, it'll work how >> you want: >> >>   $git->describe({ abbrev => ' 0' }) >> >> If that works acceptably for you, I can update the documentation.
Well, it works. Better than nothing, I guess. -- David
On Wed Sep 14 09:09:27 2011, DAGOLDEN wrote: Show quoted text
> On Tue, Sep 13, 2011 at 7:41 AM, John SJ Anderson via RT > <bug-Git-Wrapper@rt.cpan.org> wrote:
> >> This is a bit of a kludge, but I think if you do this, it'll work how > >> you want: > >> > >>   $git->describe({ abbrev => ' 0' }) > >> > >> If that works acceptably for you, I can update the documentation.
> > Well, it works. Better than nothing, I guess. > > -- David
I updated the documentation (commit 1d77bf5) and expect to do a release later this afternoon. Thanks again for reporting this. j.