Skip Menu |

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

Report information
The Basics
Id: 99823
Status: open
Priority: 0/
Queue: Git-Repository

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

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



Subject: please make it possible to instantiate a Git::Repository object without any work_tree
On git < 1.7.12 there is a bug in `git submodule update --init` that causes it to fatal out when cloning a fresh submodule when the work tree environment variable is set, even when it's in the work tree dir already. I can create a Git::Repository object without giving it a work_tree argument, but it will populate that attribute on its own. This means i have to do silly things like this: sub _build_r { my $r = Git::Repository->new( { fatal => '!0' } ); $r->{work_tree} = undef; return $r; } It would be nice if i could just not give it work_tree and have it proceed as normal then.
On Sun Oct 26 15:29:11 2014, MITHALDU wrote: Show quoted text
> On git < 1.7.12 there is a bug in `git submodule update --init` that > causes it to fatal out when cloning a fresh submodule when the work > tree environment variable is set, even when it's in the work tree dir > already. I can create a Git::Repository object without giving it a > work_tree argument, but it will populate that attribute on its own. > This means i have to do silly things like this: > > sub _build_r { > my $r = Git::Repository->new( { fatal => '!0' } ); > $r->{work_tree} = undef; > return $r; > } > > It would be nice if i could just not give it work_tree and have it > proceed as normal then.
Sorry for taking so long to reply. Instead of a fix, do you have an example script that exhibits the issue when run on one of the buggy git versions? Thanks, -- BooK
On Tue Apr 14 11:27:43 2015, BOOK wrote: Show quoted text
> > Instead of a fix, do you have an example script that exhibits the issue > when run on one of the buggy git versions? >
As discussed on IRC, the script that used to have issues is: https://github.com/wchristian/deploy.pm/blob/master/gitrole.pm