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.