Git-Archive
view release on metacpan or search on metacpan
$repo->run( commit => '-m "Second post!"' );
$repo->run( 'push' );
$repo->run( 'pull' );
my @logs = $repo->run( log => '--pretty=oneline');
is(scalar @logs, 2, 'Second commit successful');
my @o_logs = $repo->run( log => '--pretty=oneline', 'origin/master');
is(@o_logs, 2, 'Second commit push successful');
}
# And on to testing the actual code...
sub update_foo {
my $str = shift;
open(my $foo, '>>', "$ld/foo");
if ($str) {
print $foo "$str\n";
}
else {
print $foo "Another line\n";
}
close $foo;
}
( run in 0.311 second using v1.01-cache-2.11-cpan-4d4bc49f3ae )