my $path = $self->storage_path;
$self->_mkpath($path);
$self->_git_exec('init');
+ CORE::open my $fh, '>', "$path/.gitignore"
+ or die "Unable to write .gitignore in '$path': $!\n";
+ $self->_git_exec('add', '.gitignore');
+ $self->_git_exec('commit', '-m', '"Initial commit"');
return 1;
}
ok not($tree->exists), 'tree doesnt exist yet';
ok $tree->create, 'tree creation successful';
ok $tree->exists, 'tree does now exit';
+ok(-e "$tree_path/.gitignore", 'created .gitignore');
do {
ok(my $fh = $tree->open('>', 'foo/bar.txt', mkpath => 1), 'open file');