final Path target2 = PROVIDER.getPath( URI.create( "git://other_branch2@cherrypick-test-repo" ) );
PROVIDER.copy( source, target2 );
{
PROVIDER.copy( source, target, new CherryPickCopyOption( commit2CherryPick ) );
String result = convertStreamToString( PROVIDER.newInputStream( PROVIDER.getPath( URI.create( "git://other_branch@cherrypick-test-repo/myfile1.txt" ) ) ) );
assertThat( result ).isEqualTo( cherryPickContent );
}
{
PROVIDER.copy( source, target2, new CherryPickCopyOption( commit2CherryPick, commit2CherryPick2 ) );
final String result = convertStreamToString( PROVIDER.newInputStream( PROVIDER.getPath( URI.create( "git://other_branch2@cherrypick-test-repo/myfile1.txt" ) ) ) );
assertThat( result ).isEqualTo( cherryPickContent2 );
}
}